├── home ├── nvim │ ├── .editorconfig │ ├── lua │ │ ├── .luarc.json │ │ ├── init.lua │ │ ├── plugins │ │ │ ├── colorscheme.lua │ │ │ ├── lualine.lua │ │ │ ├── telescope.lua │ │ │ ├── treesitter.lua │ │ │ ├── toggleterm.lua │ │ │ ├── nvimtree.lua │ │ │ └── lsp.lua │ │ └── lazy_plugins.lua │ ├── .clangd │ ├── default.nix │ ├── lazy-lock.json │ ├── .clang-tidy │ ├── fix-syntax-higlighting.patch │ └── .vimrc ├── picom │ ├── default.nix │ └── picom.conf ├── dunst │ ├── default.nix │ └── settings.nix ├── neofetch │ ├── default.nix │ └── config.conf ├── qtile │ ├── default.nix │ └── src │ │ ├── colors.py │ │ ├── controls.py │ │ ├── config.py │ │ └── bar.py ├── flameshot.nix ├── btop │ ├── default.nix │ └── btop.conf ├── minimal.nix ├── cursor.nix ├── extra_files.nix ├── betterlockscreen │ ├── default.nix │ └── betterlockscreenrc ├── tmux │ ├── tmux.conf │ └── default.nix ├── zsh │ ├── sigma.zsh-theme │ └── default.nix ├── gtk.nix ├── bash │ └── default.nix ├── git.nix ├── kitty.nix └── default.nix ├── screenshot.png ├── assets ├── banner.png ├── lockscreen.png ├── wallpaper.png ├── screenshots │ ├── palette.png │ ├── qtile_base.png │ ├── qtile_tiling.png │ ├── qtile_floatting.png │ ├── qtile_floatting2.png │ └── qtile_floatting3.png └── nixos_logo_custom_colors.svg ├── .gitignore ├── .editorconfig ├── system ├── minimal.nix ├── qwerty-fr.nix ├── polkit.nix ├── _toaster.nix ├── _bacon.nix ├── issuerc ├── _sigmachine.nix └── default.nix ├── .github └── workflows │ ├── check.yml │ └── update-screenshot.yml ├── graph.conf ├── .gitattributes ├── .inputrc ├── .xinitrc ├── hardware ├── toaster.hardware-configuration.nix ├── bacon.hardware-configuration.nix └── sigmachine.hardware-configuration.nix ├── screenshot.nix ├── README.md ├── flake.nix ├── flake.lock └── LICENCE /home/nvim/.editorconfig: -------------------------------------------------------------------------------- 1 | [*.lua] 2 | indent_size = 2 3 | -------------------------------------------------------------------------------- /home/nvim/lua/.luarc.json: -------------------------------------------------------------------------------- 1 | { 2 | "workspace.checkThirdParty": false 3 | } -------------------------------------------------------------------------------- /screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sigmanificient/dotfiles/HEAD/screenshot.png -------------------------------------------------------------------------------- /assets/banner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sigmanificient/dotfiles/HEAD/assets/banner.png -------------------------------------------------------------------------------- /assets/lockscreen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sigmanificient/dotfiles/HEAD/assets/lockscreen.png -------------------------------------------------------------------------------- /assets/wallpaper.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sigmanificient/dotfiles/HEAD/assets/wallpaper.png -------------------------------------------------------------------------------- /home/nvim/lua/init.lua: -------------------------------------------------------------------------------- 1 | require("lazy").setup("lazy_plugins") 2 | vim.diagnostic.config({ virtual_text = false }) 3 | -------------------------------------------------------------------------------- /assets/screenshots/palette.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sigmanificient/dotfiles/HEAD/assets/screenshots/palette.png -------------------------------------------------------------------------------- /assets/screenshots/qtile_base.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sigmanificient/dotfiles/HEAD/assets/screenshots/qtile_base.png -------------------------------------------------------------------------------- /assets/screenshots/qtile_tiling.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sigmanificient/dotfiles/HEAD/assets/screenshots/qtile_tiling.png -------------------------------------------------------------------------------- /assets/screenshots/qtile_floatting.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sigmanificient/dotfiles/HEAD/assets/screenshots/qtile_floatting.png -------------------------------------------------------------------------------- /assets/screenshots/qtile_floatting2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sigmanificient/dotfiles/HEAD/assets/screenshots/qtile_floatting2.png -------------------------------------------------------------------------------- /assets/screenshots/qtile_floatting3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sigmanificient/dotfiles/HEAD/assets/screenshots/qtile_floatting3.png -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Pre-commit config 2 | .pre-commit-config.yaml 3 | 4 | # Virtual Machines Disks 5 | *.qcow2 6 | 7 | # nix-visualize 8 | frame.png 9 | -------------------------------------------------------------------------------- /home/picom/default.nix: -------------------------------------------------------------------------------- 1 | { ... }: 2 | { 3 | home.file.picom_config = { 4 | source = ./picom.conf; 5 | target = ".config/picom/picom.conf"; 6 | }; 7 | } 8 | -------------------------------------------------------------------------------- /home/dunst/default.nix: -------------------------------------------------------------------------------- 1 | { pkgs, ... }: 2 | { 3 | services.dunst = { 4 | enable = true; 5 | 6 | settings = (import ./settings.nix { inherit pkgs; }); 7 | }; 8 | } 9 | -------------------------------------------------------------------------------- /home/neofetch/default.nix: -------------------------------------------------------------------------------- 1 | { ... }: 2 | { 3 | home.file.neofetch_config = { 4 | source = ./config.conf; 5 | target = ".config/neofetch/config.conf"; 6 | }; 7 | } 8 | -------------------------------------------------------------------------------- /home/qtile/default.nix: -------------------------------------------------------------------------------- 1 | { ... }: 2 | { 3 | home.file.qtile_configs = { 4 | source = ./src; 5 | target = ".config/qtile"; 6 | recursive = true; 7 | }; 8 | } 9 | -------------------------------------------------------------------------------- /home/flameshot.nix: -------------------------------------------------------------------------------- 1 | { ... }: 2 | { 3 | services.flameshot = { 4 | enable = true; 5 | settings = { 6 | General = { 7 | uiColor = "#1435c7"; 8 | }; 9 | }; 10 | }; 11 | } 12 | -------------------------------------------------------------------------------- /home/btop/default.nix: -------------------------------------------------------------------------------- 1 | { pkgs, ... }: 2 | { 3 | home.packages = with pkgs; [ btop ]; 4 | 5 | home.file.btop_config = { 6 | source = ./btop.conf; 7 | target = ".config/btop/btop.conf"; 8 | }; 9 | } 10 | -------------------------------------------------------------------------------- /home/nvim/lua/plugins/colorscheme.lua: -------------------------------------------------------------------------------- 1 | local is_vt_tty = vim.fn.expand("$TERM") == "linux" 2 | 3 | if not is_vt_tty then 4 | vim.cmd('colorscheme catppuccin-macchiato') 5 | end 6 | 7 | vim.api.nvim_set_hl(0, "Normal", { ctermbg = nil }) 8 | -------------------------------------------------------------------------------- /home/nvim/lua/plugins/lualine.lua: -------------------------------------------------------------------------------- 1 | local lualine = require("lualine") 2 | local catppuccin_theme = require("lualine.themes.catppuccin") 3 | 4 | catppuccin_theme.normal.c.bg = "#0f0f1c"; 5 | 6 | lualine.setup { 7 | options = { theme = catppuccin_theme }, 8 | } 9 | -------------------------------------------------------------------------------- /home/minimal.nix: -------------------------------------------------------------------------------- 1 | { ... }: 2 | { 3 | programs.home-manager.enable = true; 4 | 5 | home.stateVersion = "25.05"; 6 | 7 | imports = [ 8 | ./picom 9 | ./qtile 10 | ./zsh 11 | 12 | ./extra_files.nix 13 | ./kitty.nix 14 | ]; 15 | } 16 | -------------------------------------------------------------------------------- /home/cursor.nix: -------------------------------------------------------------------------------- 1 | { pkgs, ... }: 2 | { 3 | home.pointerCursor = { 4 | gtk.enable = true; 5 | x11.enable = true; 6 | name = "Catppuccin-Macchiato-Dark-Cursors"; 7 | package = pkgs.catppuccin-cursors.macchiatoDark; 8 | size = 24; 9 | }; 10 | } 11 | -------------------------------------------------------------------------------- /home/nvim/lua/plugins/telescope.lua: -------------------------------------------------------------------------------- 1 | local builtin = require("telescope.builtin") 2 | 3 | vim.keymap.set("n", "ff", builtin.find_files, {}) 4 | vim.keymap.set("n", "fg", builtin.live_grep, {}) 5 | vim.keymap.set("n", "fb", builtin.buffers, {}) 6 | vim.keymap.set("n", "fh", builtin.help_tags, {}) 7 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | charset = utf-8 5 | end_of_line = lf 6 | trim_trailing_whitespace = true 7 | insert_final_newline = true 8 | max_line_length = 80 9 | indent_style = space 10 | indent_size = 4 11 | 12 | [*.nix] 13 | indent_size = 2 14 | 15 | [{.bashrc,.profile,.xinitrc}] 16 | indent_size = 2 17 | -------------------------------------------------------------------------------- /home/nvim/.clangd: -------------------------------------------------------------------------------- 1 | CompileFlags: 2 | Add: -Wno-unknown-warning-option 3 | Add: -Wno-compare-distinct-pointer-types 4 | Remove: [-m*, -f*] 5 | FileExtensions: 6 | - Pattern: "*.c" 7 | Language: C 8 | - Pattern: "*.h" 9 | Language: C 10 | - Pattern: "*.cpp" 11 | Language: C++ 12 | - Pattern: "*.hpp" 13 | Language: C++ 14 | -------------------------------------------------------------------------------- /home/picom/picom.conf: -------------------------------------------------------------------------------- 1 | ################################# 2 | # Fading # 3 | ################################# 4 | 5 | fading = true 6 | 7 | fade-in-step = 0.02 8 | fade-out-step = 0.05 9 | 10 | fade-delta = 5 11 | 12 | ################################# 13 | # Opacity # 14 | ################################# 15 | 16 | opacity-rule = [ "95:class_g = 'kitty'" ] 17 | -------------------------------------------------------------------------------- /home/nvim/lua/plugins/treesitter.lua: -------------------------------------------------------------------------------- 1 | require("nvim-treesitter.configs").setup { 2 | ensure_installed = { "bash", "c", "lua", "vim", "python", "yaml" }, 3 | ignore_install = { "all" }, 4 | 5 | sync_install = false, 6 | auto_install = false, 7 | 8 | highlight = { 9 | enable = true, 10 | additional_vim_regex_highlighting = false, 11 | }, 12 | 13 | indent = { enable = true }, 14 | modules = {} 15 | } 16 | -------------------------------------------------------------------------------- /system/minimal.nix: -------------------------------------------------------------------------------- 1 | { pkgs, username, ... }: 2 | { 3 | boot.loader.grub.device = "nodev"; 4 | 5 | services.xserver = { 6 | enable = true; 7 | windowManager.qtile.enable = true; 8 | }; 9 | 10 | users.users.${username} = { 11 | isNormalUser = true; 12 | shell = pkgs.zsh; 13 | }; 14 | 15 | fonts.packages = with pkgs; [ 16 | nerd-fonts.jetbrains-mono 17 | ]; 18 | 19 | programs.zsh.enable = true; 20 | } 21 | -------------------------------------------------------------------------------- /home/extra_files.nix: -------------------------------------------------------------------------------- 1 | { pkgs, ... }: 2 | { 3 | home.file = { 4 | xinitrc = { 5 | source = ./../.xinitrc; 6 | target = ".xinitrc"; 7 | }; 8 | 9 | wallpaper = { 10 | source = ./../assets/wallpaper.png; 11 | target = "assets/wallpaper.png"; 12 | }; 13 | 14 | wakatime-cli = { 15 | source = pkgs.lib.getExe pkgs.wakatime-cli; 16 | target = ".wakatime/wakatime-cli"; 17 | }; 18 | }; 19 | } 20 | -------------------------------------------------------------------------------- /home/betterlockscreen/default.nix: -------------------------------------------------------------------------------- 1 | { ... }: 2 | { 3 | services.betterlockscreen = { 4 | enable = true; 5 | arguments = [ "-u ~/assets/lockscreen.png" ]; 6 | }; 7 | 8 | home.file.betterlockscreenrc = { 9 | source = ./betterlockscreenrc; 10 | target = ".config/betterlockscreenrc"; 11 | }; 12 | 13 | home.file.lockscreen = { 14 | source = ./../../assets/lockscreen.png; 15 | target = "assets/lockscreen.png"; 16 | }; 17 | } 18 | -------------------------------------------------------------------------------- /.github/workflows/check.yml: -------------------------------------------------------------------------------- 1 | on: 2 | workflow_dispatch: 3 | push: 4 | paths: 5 | - "**.nix" 6 | - "**.lock" 7 | - ".github/workflows/check.yml" 8 | 9 | jobs: 10 | check: 11 | runs-on: ubuntu-latest 12 | 13 | steps: 14 | - uses: actions/checkout@v3 15 | - uses: cachix/install-nix-action@v20 16 | with: 17 | github_access_token: ${{ secrets.GITHUB_TOKEN }} 18 | - run: nix flake check --show-trace 19 | -------------------------------------------------------------------------------- /graph.conf: -------------------------------------------------------------------------------- 1 | [graph] 2 | aspect_ratio: 2 3 | font_scale: 0.1 4 | font_color: #000000 5 | img_y_height_inches: 8 6 | dpi: 600 7 | color_scatter: 0.5 8 | edge_width_scale: 0.25 9 | top_level_spacing: 80 10 | min_node_size: 2 11 | max_node_size_over_min_node_size: 64 12 | add_size_per_out_link: 1 13 | max_displacement: 10 14 | num_iterations: 200 15 | tmax: 100 16 | y_sublevels: 20 17 | y_sublevel_spacing: 0.1 18 | attractive_force_normalization: 4 19 | repulsive_force_normalization: 8 20 | -------------------------------------------------------------------------------- /home/tmux/tmux.conf: -------------------------------------------------------------------------------- 1 | set -g mouse on 2 | 3 | # Window and panes first index is 1 instead of 0 4 | set -g base-index 1 5 | set -g pane-base-index 1 6 | set-window-option -g pane-base-index 1 7 | set-option -g renumber-windows on 8 | 9 | # Open panes in current directory 10 | bind '"' split-window -v -c "#{pane_current_path}" 11 | bind % split-window -h -c "#{pane_current_path}" 12 | 13 | set -g default-terminal "xterm-256color" 14 | set -ga terminal-overrides ",xterm-256color:Tc" 15 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=lf 2 | * eol=lf 3 | 4 | *.png binary 5 | *.jpg binary 6 | 7 | *.* linguist-detectable 8 | *.ini -linguist-detectable 9 | 10 | *.md -linguist-documentation 11 | *.md -linguist-generated 12 | 13 | config/bpytop/bpytop.conf linguist-language=shell 14 | config/neofetch/config.conf linguist-language=shell 15 | config/zsh/sigma.zsh-theme linguist-language=shell 16 | 17 | .bashrc linguist-language=shell 18 | .profile linguist-language=shell 19 | .xinitrc linguist-language=shell 20 | -------------------------------------------------------------------------------- /home/tmux/default.nix: -------------------------------------------------------------------------------- 1 | { pkgs, ... }: 2 | { 3 | programs.tmux = { 4 | enable = true; 5 | 6 | plugins = with pkgs; [ 7 | { 8 | plugin = tmuxPlugins.catppuccin; 9 | extraConfig = '' 10 | set -g @catppuccin_flavour 'mocha' 11 | set -g @catppuccin_date_time "" 12 | set -g @catppuccin_user "off" 13 | set -g @catppuccin_host "on" 14 | ''; 15 | } 16 | ]; 17 | 18 | extraConfig = builtins.readFile ./tmux.conf; 19 | }; 20 | } 21 | -------------------------------------------------------------------------------- /system/qwerty-fr.nix: -------------------------------------------------------------------------------- 1 | { stdenvNoCC, fetchFromGitHub }: 2 | stdenvNoCC.mkDerivation (finalAttrs: { 3 | pname = "qwerty-fr"; 4 | version = "0.7.3"; 5 | 6 | src = fetchFromGitHub { 7 | owner = "qwerty-fr"; 8 | repo = "qwerty-fr"; 9 | rev = "refs/tags/v${finalAttrs.version}"; 10 | hash = "sha256-TD67wKdaPaXzJzjKFCfRZl3WflUfdnUSQl/fnjr9TF8="; 11 | }; 12 | 13 | installPhase = '' 14 | runHook preInstall 15 | 16 | mkdir -p $out/share/X11/xkb/symbols 17 | cp $src/linux/us_qwerty-fr $out/share/X11/xkb/symbols 18 | 19 | runHook postInstall 20 | ''; 21 | }) 22 | -------------------------------------------------------------------------------- /home/zsh/sigma.zsh-theme: -------------------------------------------------------------------------------- 1 | ZSH_THEME_GIT_PROMPT_PREFIX=" - %F{blue}[%F{red}" 2 | ZSH_THEME_GIT_PROMPT_SUFFIX="%F{blue}]%f" 3 | ZSH_THEME_GIT_PROMPT_DIRTY=" %F{green}+" 4 | ZSH_THEME_GIT_PROMPT_CLEAN="" 5 | 6 | local pwd="%F{blue}[%f%F{grey}%~%F{blue}]%f" 7 | local user="%F{blue}[%F{green}%n%f@%F{cyan}%m%F{blue}]%f" 8 | local count="%F{blue}[%b%F{yellow}%!%F{blue}%B]%f" 9 | local decoration="%F{magenta}$%F{blue}" 10 | 11 | local sep="%b-%B" 12 | PROMPT=$'%B%F{blue}┌─$user $sep $pwd$(git_prompt_info) $sep $count%B%F{blue}\n└─[$decoration]%f ' 13 | RPROMPT="[%*]" 14 | PS2="%F{magenta}>%f " 15 | PS3="%F{magenta}>%f " 16 | -------------------------------------------------------------------------------- /.inputrc: -------------------------------------------------------------------------------- 1 | # Prettyfi 2 | set colored-stats On 3 | set colored-completion-prefix On 4 | 5 | # Completion settings 6 | set show-all-if-ambiguous on 7 | set completion-ignore-case on 8 | 9 | # ^C no longer shows on C-c keypress 10 | set echo-control-characters off 11 | 12 | # Command history search 13 | "\e[A": history-search-backward 14 | "\e[B": history-search-forward 15 | 16 | # Move foreward/backward by word 17 | "\e[1;5D": backward-word 18 | "\e[1;5C": forward-word 19 | 20 | 21 | # Bash Keybindings 22 | "\C-f":"cd ~/.config/" 23 | "\C-b":"cd ..\n" 24 | "\C-h":"cd\n" 25 | "\C-w":"webserver\n" 26 | "\es": "\C-asudo \C-e" 27 | 28 | -------------------------------------------------------------------------------- /system/polkit.nix: -------------------------------------------------------------------------------- 1 | { pkgs, ... }: 2 | let 3 | pgaa = "polkit-gnome-authentication-agent-1"; 4 | in 5 | { 6 | security.polkit.enable = true; 7 | 8 | systemd = { 9 | user.services.${pgaa} = { 10 | description = pgaa; 11 | wantedBy = [ "graphical-session.target" ]; 12 | wants = [ "graphical-session.target" ]; 13 | after = [ "graphical-session.target" ]; 14 | serviceConfig = { 15 | Type = "simple"; 16 | ExecStart = "${pkgs.polkit_gnome}/libexec/${pgaa}"; 17 | Restart = "on-failure"; 18 | RestartSec = 1; 19 | TimeoutStopSec = 10; 20 | }; 21 | }; 22 | }; 23 | } 24 | -------------------------------------------------------------------------------- /system/_toaster.nix: -------------------------------------------------------------------------------- 1 | { lib, ... }: { 2 | programs = { 3 | noisetorch.enable = lib.mkForce false; 4 | steam.enable = lib.mkForce false; 5 | }; 6 | 7 | services.pipewire = { 8 | enable = lib.mkForce false; 9 | alsa.enable = lib.mkForce false; 10 | alsa.support32Bit = lib.mkForce false; 11 | pulse.enable = lib.mkForce false; 12 | }; 13 | 14 | services.upower.enable = true; 15 | 16 | virtualisation = { 17 | docker.enable = lib.mkForce false; 18 | libvirtd.enable = lib.mkForce false; 19 | }; 20 | 21 | system = { 22 | copySystemConfiguration = false; 23 | stateVersion = "24.05"; 24 | }; 25 | } 26 | -------------------------------------------------------------------------------- /home/nvim/lua/plugins/toggleterm.lua: -------------------------------------------------------------------------------- 1 | local Terminal = require("toggleterm.terminal").Terminal 2 | 3 | local floating_term = function(do_cmd) 4 | return Terminal:new({ 5 | cmd = do_cmd; 6 | hidden = true, 7 | direction = "float", 8 | on_open = function(term) 9 | vim.api.nvim_buf_set_keymap( 10 | term.bufnr, 11 | "n", "q", "close", 12 | { noremap = true, silent = true } 13 | ) 14 | end, 15 | }) 16 | end 17 | 18 | local lazygit = floating_term("lazygit || nix run nixpkgs#lazygit"); 19 | local fzf_make = floating_term("fzf-make || nix run nixpkgs#fzf-make"); 20 | 21 | vim.keymap.set("n", "gl", function() lazygit:toggle() end) 22 | vim.keymap.set("n", "fz", function() fzf_make:toggle() end) 23 | -------------------------------------------------------------------------------- /home/gtk.nix: -------------------------------------------------------------------------------- 1 | { pkgs, ... }: 2 | { 3 | dconf = { 4 | enable = true; 5 | settings = { 6 | "org/gnome/desktop/interface" = { 7 | color-scheme = "prefer-dark"; 8 | }; 9 | }; 10 | }; 11 | 12 | gtk = { 13 | enable = true; 14 | # catppuccin = { 15 | # enable = true; 16 | # size = "compact"; 17 | # tweaks = [ "rimless" ]; 18 | # }; 19 | 20 | # cursorTheme = { 21 | # name = "Catppuccin-Macchiato-Dark"; 22 | # package = pkgs.catppuccin-cursors.macchiatoDark; 23 | # }; 24 | 25 | # iconTheme = { 26 | # name = "Papirus-Dark"; 27 | # package = pkgs.papirus-icon-theme; 28 | # }; 29 | }; 30 | 31 | qt = { 32 | enable = true; 33 | platformTheme.name = "kvantum"; 34 | style.name = "kvantum"; 35 | }; 36 | } 37 | -------------------------------------------------------------------------------- /home/qtile/src/colors.py: -------------------------------------------------------------------------------- 1 | class Color(str): 2 | def with_alpha(self, alpha: float) -> str: 3 | return f"{self}{int(alpha * 255):02x}" 4 | 5 | 6 | BG_DARK = Color("#0F0F1C") 7 | BG_LIGHT = Color("#1A1C31") 8 | BG_LIGHTER = Color("#22263F") 9 | 10 | RED_DARK = Color("#D22942") 11 | RED_LIGHT = Color("#DE4259") 12 | 13 | GREEN_DARK = Color("#17B67C") 14 | GREEN_LIGHT = Color("#3FD7A0") 15 | 16 | YELLOW_DARK = Color("#F2A174") 17 | YELLOW_LIGHT = Color("#EED49F") 18 | 19 | BLUE_VERY_DARK = Color("#3F3D9E") 20 | BLUE_DARK = Color("#8B8AF1") 21 | BLUE_LIGHT = Color("#A7A5FB") 22 | 23 | PURPLE_DARK = Color("#D78AF1") 24 | PURPLE_LIGHT = Color("#E5A5FB") 25 | 26 | CYAN_DARK = Color("#8ADEF1") 27 | CYAN_LIGHT = Color("#A5EBFB") 28 | 29 | TEXT_INACTIVE = Color("#292C39") 30 | TEXT_DARK = Color("#A2B1E8") 31 | TEXT_LIGHT = Color("#CAD3F5") 32 | -------------------------------------------------------------------------------- /system/_bacon.nix: -------------------------------------------------------------------------------- 1 | { config, pkgs, ... }: { 2 | services.xserver.videoDrivers = [ "nvidia" ]; 3 | 4 | hardware = { 5 | graphics = { 6 | enable = true; 7 | extraPackages = with pkgs; [ 8 | intel-media-driver 9 | libvdpau-va-gl 10 | nvidia-vaapi-driver 11 | intel-vaapi-driver 12 | libva-vdpau-driver 13 | vulkan-validation-layers 14 | ]; 15 | }; 16 | 17 | nvidia = { 18 | modesetting.enable = true; 19 | 20 | powerManagement.enable = false; 21 | powerManagement.finegrained = false; 22 | 23 | open = false; 24 | nvidiaSettings = true; 25 | 26 | package = config.boot.kernelPackages.nvidiaPackages.stable; 27 | }; 28 | }; 29 | 30 | system = { 31 | copySystemConfiguration = false; 32 | stateVersion = "22.11"; 33 | }; 34 | } 35 | -------------------------------------------------------------------------------- /home/bash/default.nix: -------------------------------------------------------------------------------- 1 | { pkgs, ... }: 2 | let 3 | bash-wakatime = pkgs.fetchFromGitHub { 4 | owner = "gjsheep"; 5 | repo = "bash-wakatime"; 6 | rev = "c97292398936393c3f985f4924a3c234793ca3b8"; 7 | sha256 = "sha256-Heq/VxfCqFhnYxAm2ejymANdPmZ5uNixuZiuC/53VQE="; 8 | }; 9 | in 10 | { 11 | programs.bash = { 12 | enable = true; 13 | 14 | enableCompletion = true; 15 | enableVteIntegration = true; 16 | 17 | shellAliases = { 18 | ".." = "cd .."; 19 | "..." = "cd ../.."; 20 | "...." = "cd ../../.."; 21 | 22 | ls = "ls --color=auto"; 23 | ll = "ls -l"; 24 | 25 | dodo = "shutdown now"; 26 | 27 | bashrcExtra = '' 28 | source ${bash-wakatime}/bash-wakatime.sh 29 | ''; 30 | }; 31 | }; 32 | 33 | home.file.inputrc = { 34 | source = ./../../.inputrc; 35 | target = ".inputrc"; 36 | }; 37 | } 38 | -------------------------------------------------------------------------------- /home/git.nix: -------------------------------------------------------------------------------- 1 | { ... }: 2 | { 3 | programs.git = { 4 | enable = true; 5 | 6 | settings = { 7 | user = { 8 | name = "Sigmanificient"; 9 | email = "edhyjox" + "@" + "gmail.com"; 10 | }; 11 | 12 | url = { 13 | init = { 14 | defaultBranch = "main"; 15 | }; 16 | 17 | "ssh://git@github.com/" = { 18 | insteadOf = "https://github.com/"; 19 | }; 20 | }; 21 | }; 22 | 23 | ignores = [ 24 | # C commons 25 | ".cache" 26 | "compile_commands.json" 27 | "*.gc??" 28 | "vgcore.*" 29 | # Python 30 | "venv" 31 | # Locked Files 32 | "*~" 33 | # Mac folder 34 | ".DS_Store" 35 | # Direnv 36 | ".direnv" 37 | ".envrc" 38 | # Nix buid 39 | "result" 40 | # IDE Folders 41 | ".idea" 42 | ".vscode" 43 | ".vs" 44 | ]; 45 | }; 46 | } 47 | -------------------------------------------------------------------------------- /home/nvim/default.nix: -------------------------------------------------------------------------------- 1 | { pkgs, pkgs-stable, ... }: 2 | let 3 | hls = pkgs-stable.haskell.packages.ghc984.haskell-language-server; 4 | in 5 | { 6 | home.file = { 7 | nvim_conf = { 8 | source = ./lua; 9 | target = ".config/nvim/lua"; 10 | recursive = true; 11 | }; 12 | 13 | clang_tidy = { 14 | source = ./.clang-tidy; 15 | target = ".clang-tidy"; 16 | }; 17 | 18 | clangd = { 19 | source = ./.clangd; 20 | target = ".clangd"; 21 | }; 22 | }; 23 | 24 | programs.neovim = { 25 | enable = true; 26 | 27 | extraConfig = (builtins.readFile ./.vimrc); 28 | plugins = [ pkgs.vimPlugins.lazy-nvim ]; 29 | 30 | extraPackages = with pkgs; [ 31 | nil 32 | lua-language-server 33 | pyright 34 | clang-tools 35 | llvmPackages.clang 36 | llvmPackages.clang-tools 37 | nodejs 38 | xclip 39 | fzf-make 40 | typescript-language-server 41 | hls 42 | ]; 43 | }; 44 | } 45 | -------------------------------------------------------------------------------- /home/neofetch/config.conf: -------------------------------------------------------------------------------- 1 | os_arch="off" 2 | uptime_shorthand="tiny" 3 | memory_percent="on" 4 | 5 | bold="on" 6 | separator=" ➜" 7 | 8 | colors=(4 6) 9 | block_range=(0 7) 10 | 11 | ascii_bold="on" 12 | ascii_colors=(8 4) 13 | 14 | 15 | get_cpu_name() { 16 | neofetch cpu \ 17 | | sed s/"with Radeon Graphics"// \ 18 | | sed s/"cpu ➜ "// 19 | } 20 | 21 | print_info() { 22 | info title 23 | prin 24 | 25 | info "$(color 15)OS" distro 26 | info "$(color 15)├$(color 4) Kernel" kernel 27 | info "$(color 15)├$(color 4) Packages" packages 28 | info "$(color 15)└$(color 4) Uptime" uptime 29 | 30 | prin 31 | info "$(color 15)PC" hostname 32 | 33 | prin "$(color 15)├$(color 4) CPU" "$(get_cpu_name)" 34 | info "$(color 15)├$(color 4) Memory" memory 35 | info "$(color 15)├$(color 4) GPU" gpu 36 | info "$(color 15)└$(color 4) Resolution" resolution 37 | 38 | prin 39 | prin "$(color 15)WM" "Qtile" 40 | prin "$(color 15)└$(color 4) Compositor" "Picom" 41 | 42 | prin 43 | info "$(color 15)TTY" term 44 | info "$(color 15)└$(color 4) Shell" shell 45 | } 46 | -------------------------------------------------------------------------------- /home/dunst/settings.nix: -------------------------------------------------------------------------------- 1 | { pkgs, ... }: 2 | { 3 | global = { 4 | alignment = "left"; 5 | always_run_script = true; 6 | browser = "${pkgs.lib.getExe pkgs.firefox}"; 7 | 8 | font = "JetBrainsMono Nerd Font Mono 10"; 9 | frame_color = "#8AADF4"; 10 | separator_color = "frame"; 11 | 12 | icon_path = "-"; 13 | indicate_hidden = "yes"; 14 | 15 | mouse_left_click = "do_action, close_current"; 16 | mouse_middle_click = "do_action, close_current"; 17 | mouse_right_click = "close_all"; 18 | 19 | corner_radius = 4; 20 | frame_width = 2; 21 | horizontal_padding = 14; 22 | padding = 8; 23 | separator_height = 2; 24 | 25 | show_indicators = "yes"; 26 | sticky_history = "no"; 27 | vertical_alignment = "center"; 28 | word_wrap = "yes"; 29 | }; 30 | 31 | urgency_low = { 32 | background = "#0D0D1680"; 33 | foreground = "#8AADF4"; 34 | timeout = 10; 35 | }; 36 | 37 | urgency_normal = { 38 | background = "#0D0D1680"; 39 | foreground = "#EED49F"; 40 | timeout = 15; 41 | }; 42 | 43 | urgency_critical = { 44 | background = "#0D0D1680"; 45 | foreground = "#ED8796"; 46 | timeout = 30; 47 | }; 48 | } 49 | -------------------------------------------------------------------------------- /.github/workflows/update-screenshot.yml: -------------------------------------------------------------------------------- 1 | on: 2 | workflow_dispatch: 3 | push: 4 | 5 | jobs: 6 | update_screenshot: 7 | runs-on: ubuntu-latest 8 | steps: 9 | - uses: actions/checkout@v4 10 | 11 | - name: free up disk space 12 | uses: wimpysworld/nothing-but-nix@main 13 | 14 | - uses: cachix/install-nix-action@v26 15 | with: 16 | nix_path: nixpkgs=channel:nixos-unstable 17 | 18 | - name: Install SSH key 19 | uses: shimataro/ssh-key-action@v2 20 | with: 21 | key: ${{ secrets.GH_SSH_PRIVATE_KEY }} 22 | known_hosts: $GH_PUB_KEY 23 | 24 | - name: Get screenshot 25 | run: | 26 | nix build .\#screenshot-system \ 27 | --print-build-logs \ 28 | --extra-experimental-features 'nix-command flakes' 29 | 30 | - name: Push in gist 31 | run: | 32 | git config --global user.email "115845162+imjohntitor@users.noreply.github.com" 33 | git config --global user.name "ImJohnTitor" 34 | 35 | cp result/terminal.png screenshot.png 36 | 37 | git add screenshot.png || echo "no changes" 38 | git commit -m "Update screenshot" || echo "nothing to commit" 39 | git push origin master 40 | -------------------------------------------------------------------------------- /home/nvim/lazy-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "LuaSnip": { "branch": "master", "commit": "0b4950a237ce441a6a3a947d501622453f6860ea" }, 3 | "catppuccin": { "branch": "main", "commit": "6425df128d46f2db2cccf9aa7a66ca2823c1d153" }, 4 | "cmp-nvim-lsp": { "branch": "main", "commit": "44b16d11215dce86f253ce0c30949813c0a90765" }, 5 | "lsp-zero.nvim": { "branch": "v2.x", "commit": "8b205530442dfffa16d3ba32d2a24d8c11e42792" }, 6 | "lualine.nvim": { "branch": "master", "commit": "05d78e9fd0cdfb4545974a5aa14b1be95a86e9c9" }, 7 | "nvim-cmp": { "branch": "main", "commit": "c4e491a87eeacf0408902c32f031d802c7eafce8" }, 8 | "nvim-lspconfig": { "branch": "master", "commit": "dd11ba7b3c8f82d51b6d4dd7d68fce2d78bf78a0" }, 9 | "nvim-treesitter": { "branch": "master", "commit": "7b04e8b67eec7d92daadf9f0717dd272ddfc81a3" }, 10 | "nvim-web-devicons": { "branch": "master", "commit": "efbfed0567ef4bfac3ce630524a0f6c8451c5534" }, 11 | "plenary.nvim": { "branch": "master", "commit": "267282a9ce242bbb0c5dc31445b6d353bed978bb" }, 12 | "vgit.nvim": { "branch": "main", "commit": "99626283f972c597073e6f79b3461417e296eea9" }, 13 | "vim-epitech": { "branch": "master", "commit": "67807a5e240e75b2b3d6d6363921e2fabb78b52e" }, 14 | "vim-wakatime": { "branch": "master", "commit": "018fa9a80c27ccf2a8967b9e27890372e5c2fb4f" } 15 | } 16 | -------------------------------------------------------------------------------- /system/issuerc: -------------------------------------------------------------------------------- 1 | Web browsers are useless here. 2 | 3 | 4 | ,+++77777++=:, += ,,++=7++=,, 5 | 7~?7 +7I77 :,I777 I 77 7+77 7: ,?777777??~,=+=~I7?,=77 I 6 | =7I7I~7 ,77: ++:~+7 77=7777 7 +77=7 =7I7 ,I777= 77,:~7 +?7, ~7 ~ 777? 7 | 77+7I 777~,,=7~ ,::7=7: 7 77 77: 7 7 +77,7 I777~+777I= =:,77,77 77 7,777, 8 | = 7 ?7 , 7~,~ + 77 ?: :?777 +~77 77? I7777I7I7 777+77 =:, ?7 +7 777? 9 | 77 ~I == ~77= +777 777~: I,+77? 7 7:?7? ?7 7 7 77 ~I 7I,,?7 I77~ 10 | I 7=77~+77+?=:I+~77? , I 7? 77 7 777~ +7 I+?7 +7~?777,77I 11 | =77 77= +7 7777 ,7 7?7:,??7 +7 7 77??+ 7777, 12 | =I, I 7+:77? +7I7?7777 : :7 7 13 | 7I7I?77 ~ +7:77, ~ +7,::7 7 14 | ,7~77?7? ?: 7+:77777, 77 :7777= 15 | ?77 +I7+,7 7~ 7,+7 ,? ?7?~?777: 16 | I777=7777 ~ 77 : 77 =7+, I77 777 17 | + ~? , + 7 ,, ~I, = ? , 18 | 77:I+ 19 | ,7 20 | :77 21 | : 22 | 23 | \e[0;33mWelcome.\e[0;37m 24 | -------------------------------------------------------------------------------- /home/betterlockscreen/betterlockscreenrc: -------------------------------------------------------------------------------- 1 | # ~/.config/betterlockscreenrc 2 | 3 | # default options 4 | display_on=0 5 | lock_timeout=300 6 | fx_list=(dim blur dimblur pixel dimpixel color) 7 | dim_level=40 8 | blur_level=1 9 | pixel_scale=10,1000 10 | solid_color=333333 11 | quiet=false 12 | 13 | # default theme 14 | loginbox=00000066 15 | loginshadow=00000000 16 | locktext="OwO what's this?" 17 | font="JetbrainsMonoNerdFont" 18 | ringcolor=ffffffff 19 | insidecolor=00000000 20 | separatorcolor=00000000 21 | ringvercolor=ffffffff 22 | insidevercolor=00000000 23 | ringwrongcolor=ffffffff 24 | insidewrongcolor=d23c3dff 25 | timecolor=ffffffff 26 | time_format="%H:%M:%S" 27 | greetercolor=ffffffff 28 | layoutcolor=ffffffff 29 | keyhlcolor=d23c3dff 30 | bshlcolor=d23c3dff 31 | veriftext="beep boop..." 32 | verifcolor=ffffffff 33 | wrongtext="Oh no!" 34 | wrongcolor=d23c3dff 35 | modifcolor=d23c3dff 36 | bgcolor=000000ff 37 | 38 | 39 | # 40 | # expert options (change at own risk!) 41 | # 42 | 43 | # i3lockcolor_bin="i3lock-color" # Manually set command for i3lock-color 44 | # suspend_command="systemctl suspend" # Manually change action e.g. hibernate/suspend-command 45 | 46 | # i3lock-color - custom arguments 47 | # lockargs=() # overwriting default "(-n)" 48 | # lockargs+=(--ignore-empty-password) # appending new argument 49 | -------------------------------------------------------------------------------- /.xinitrc: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | userresources=$HOME/.Xresources 4 | usermodmap=$HOME/.Xmodmap 5 | sysresources=/etc/X11/xinit/.Xresources 6 | sysmodmap=/etc/X11/xinit/.Xmodmap 7 | 8 | # merge in defaults and keymaps 9 | 10 | if [ -f $sysresources ]; then 11 | xrdb -merge $sysresources 12 | fi 13 | 14 | if [ -f $sysmodmap ]; then 15 | xmodmap $sysmodmap 16 | fi 17 | 18 | if [ -f "$userresources" ]; then 19 | xrdb -merge "$userresources" 20 | fi 21 | 22 | if [ -f "$usermodmap" ]; then 23 | xmodmap "$usermodmap" 24 | fi 25 | 26 | # start some nice programs 27 | 28 | if [ -d /etc/X11/xinit/xinitrc.d ]; then 29 | for f in /etc/X11/xinit/xinitrc.d/?*.sh; do 30 | [ -x "$f" ] && . "$f" 31 | done 32 | unset f 33 | fi 34 | 35 | # ↓ https://nixos.wiki/wiki/Using_X_without_a_Display_Manager 36 | if test -z "$DBUS_SESSION_BUS_ADDRESS"; then 37 | eval $(dbus-launch --exit-with-session --sh-syntax) 38 | fi 39 | 40 | systemctl --user import-environment DISPLAY XAUTHORITY 41 | 42 | if command -v dbus-update-activation-environment >/dev/null 2>&1; then 43 | dbus-update-activation-environment DISPLAY XAUTHORITY 44 | fi 45 | 46 | if [ "$HOSTNAME" = Bacon ]; then 47 | xset s off -dpms 48 | picom -f --backend glx & 49 | else 50 | picom -f --backend xrender & 51 | fi 52 | 53 | # ↓ Wm startup 54 | flameshot & 55 | dunst & 56 | 57 | exec qtile start 58 | -------------------------------------------------------------------------------- /home/nvim/lua/plugins/nvimtree.lua: -------------------------------------------------------------------------------- 1 | local function on_attach(bufnr) 2 | local api = require("nvim-tree.api") 3 | 4 | api.config.mappings.default_on_attach(bufnr) 5 | vim.keymap.set("n", "f", "NvimTreeFocus") 6 | vim.keymap.set("n", "m", api.tree.change_root_to_node, { buffer = bufnr }) 7 | end 8 | 9 | local is_vt_tty = vim.fn.expand("$TERM") == "linux" 10 | 11 | local renderer_settings = { 12 | [ false ] = nil, 13 | [ true ] = { 14 | icons = { 15 | webdev_colors = false, 16 | symlink_arrow = " → ", 17 | glyphs = { 18 | default = "#", 19 | symlink = "@", 20 | bookmark = ":", 21 | modified = ".", 22 | folder = { 23 | arrow_closed = ">", 24 | arrow_open = "v", 25 | default = "/", 26 | open = "/", 27 | empty = "/", 28 | empty_open = "/", 29 | symlink = "@", 30 | symlink_open = "@", 31 | }, 32 | git = { 33 | unstaged = "x", 34 | staged = "&", 35 | unmerged = "!", 36 | renamed = "→", 37 | untracked = "*", 38 | deleted = "-", 39 | ignored = ";", 40 | }, 41 | } 42 | } 43 | } 44 | }; 45 | 46 | require("nvim-tree").setup( 47 | { 48 | on_attach = on_attach, 49 | filters = { 50 | git_ignored = false, 51 | custom = { "^\\.git$" }, 52 | }, 53 | renderer = renderer_settings[is_vt_tty] 54 | }) 55 | -------------------------------------------------------------------------------- /home/nvim/.clang-tidy: -------------------------------------------------------------------------------- 1 | Checks: "-*, 2 | bugprone-*, 3 | -bugprone-easily-swappable-parameters, 4 | -bugprone-multi-level-implicit-pointer-conversion, 5 | -bugprone-narrowing-conversions, 6 | misc-*, 7 | -misc-no-recursion, 8 | -misc-non-private-member-variables-in-classes, 9 | -misc-use-anonymous-namespace, 10 | performance-*, 11 | portability-*, 12 | readability-*, 13 | -readability-magic-numbers, 14 | -readability-braces-around-statements, 15 | -readability-implicit-bool-conversion, 16 | -readability-identifier-length, 17 | -readability-named-parameter, 18 | clang-analyzer-*, 19 | modernize-*, 20 | -modernize-avoid-c-arrays, 21 | -modernize-use-trailing-return-type, 22 | llvm-*" 23 | 24 | CheckOptions: 25 | - key: readability-identifier-naming.MethodCase 26 | value: camelCase 27 | - key: readability-identifier-naming.FunctionCase 28 | value: camelCase 29 | - key: readability-identifier-naming.PrivateMethodCase 30 | value: camelCase 31 | - key: readability-identifier-naming.PublicMethodCase 32 | value: camelCase 33 | - key: readability-identifier-naming.ProtectedMethodCase 34 | value: camelCase 35 | - key: readability-identifier-naming.FunctionCase 36 | value: camelCase 37 | - key: readability-identifier-naming.VariableCase 38 | value: lower_case 39 | - key: readability-identifier-naming.GlobalVariableCase 40 | value: UPPER_CASE 41 | - key: modernize-avoid-c-arrays.AllowStringArrays 42 | value: true 43 | -------------------------------------------------------------------------------- /home/nvim/fix-syntax-higlighting.patch: -------------------------------------------------------------------------------- 1 | diff --git a/src/usecase/tui/ui.rs b/src/usecase/tui/ui.rs 2 | index 8016872..c2fd518 100644 3 | --- a/src/usecase/tui/ui.rs 4 | +++ b/src/usecase/tui/ui.rs 5 | @@ -98,11 +98,13 @@ fn render_preview_block(model: &SelectCommandState, f: &mut Frame, chunk: ratatu 6 | match (selecting_command, start_index_and_end_index, command_row_index) { 7 | (Some(_), Some((start_index, _)), Some(command_row_index)) => { 8 | let ss = SyntaxSet::load_defaults_newlines(); 9 | - // HACK: `ml` is specified intentionally because it highlights `Makefile` and `json` files in a good way.(No unnecessary background color) 10 | - // lua, hs: `-- .*` is highlighted (but URL is highlighted with background color)) 11 | - // md: no background color, but highlighted words are not so many 12 | - let syntax = ss.find_syntax_by_extension("ml").unwrap(); 13 | - let theme = &mut ThemeSet::load_defaults().themes["base16-ocean.dark"].clone(); 14 | + 15 | + let mut ts = ThemeSet::load_defaults(); 16 | + ts.add_from_folder("./").unwrap(); 17 | + // dbg!(&ts.themes); 18 | + 19 | + let theme = &mut ts.themes["OneHalfDark"].clone(); 20 | + let syntax = ss.find_syntax_by_extension("mk").unwrap(); 21 | 22 | let mut lines = vec![]; 23 | for (index, line) in source_lines.iter().enumerate() { 24 | -------------------------------------------------------------------------------- /home/nvim/lua/plugins/lsp.lua: -------------------------------------------------------------------------------- 1 | local lsp = require("lsp-zero").preset({}) 2 | local lspconfig = require("lspconfig") 3 | 4 | lspconfig.lua_ls.setup { 5 | settings = { 6 | Lua = { 7 | runtime = { 8 | version = "LuaJIT", 9 | }, 10 | diagnostics = { 11 | globals = { 12 | "vim", 13 | "require" 14 | }, 15 | }, 16 | workspace = { 17 | library = vim.api.nvim_get_runtime_file("", true), 18 | }, 19 | telemetry = { 20 | enable = false, 21 | }, 22 | }, 23 | }, 24 | } 25 | 26 | lspconfig.nil_ls.setup({}) 27 | lspconfig.clangd.setup({ 28 | cmd = { 29 | "clangd", 30 | "--background-index", 31 | "--offset-encoding=utf-16", 32 | "--header-insertion=never", 33 | "--clang-tidy", 34 | }, 35 | init_options = { 36 | }, 37 | }) 38 | lspconfig.pyright.setup({}) 39 | 40 | lspconfig.ts_ls.setup({}) 41 | 42 | lsp.on_attach(function(_, bufnr) 43 | local opts = { buffer = bufnr, remap = false } 44 | 45 | vim.keymap.set("n", "gd", function() vim.lsp.buf.definition() end, opts) 46 | vim.keymap.set("n", "gr", function() vim.lsp.buf.rename() end, opts) 47 | vim.keymap.set("n", "ga", function() vim.lsp.buf.code_action() end, opts) 48 | vim.keymap.set("n", "gf", function() vim.diagnostic.open_float() end, opts) 49 | vim.keymap.set("i", "", function() vim.lsp.buf.signature_help() end, opts) 50 | 51 | lsp.default_keymaps({buffer = bufnr}) 52 | end) 53 | 54 | lsp.setup() 55 | -------------------------------------------------------------------------------- /hardware/toaster.hardware-configuration.nix: -------------------------------------------------------------------------------- 1 | # Do not modify this file! It was generated by ‘nixos-generate-config’ 2 | # and may be overwritten by future invocations. Please make changes 3 | # to /etc/nixos/configuration.nix instead. 4 | { config, lib, pkgs, modulesPath, ... }: 5 | 6 | { 7 | imports = 8 | [ 9 | (modulesPath + "/installer/scan/not-detected.nix") 10 | ]; 11 | 12 | boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "sd_mod" "sr_mod" "rtsx_usb_sdmmc" ]; 13 | boot.initrd.kernelModules = [ ]; 14 | boot.kernelModules = [ "kvm-intel" ]; 15 | boot.extraModulePackages = [ ]; 16 | 17 | fileSystems."/" = 18 | { 19 | device = "/dev/disk/by-uuid/7a86598c-ab93-436c-b9de-45170ed248c7"; 20 | fsType = "ext4"; 21 | }; 22 | 23 | fileSystems."/boot" = 24 | { 25 | device = "/dev/disk/by-uuid/D129-5111"; 26 | fsType = "vfat"; 27 | options = [ "fmask=0022" "dmask=0022" ]; 28 | }; 29 | 30 | swapDevices = [ ]; 31 | 32 | # Enables DHCP on each ethernet and wireless interface. In case of scripted networking 33 | # (the default) this is the recommended approach. When using systemd-networkd it's 34 | # still possible to use this option, but it's recommended to use it in conjunction 35 | # with explicit per-interface declarations with `networking.interfaces..useDHCP`. 36 | networking.useDHCP = lib.mkDefault true; 37 | # networking.interfaces.enp2s0.useDHCP = lib.mkDefault true; 38 | # networking.interfaces.wlp1s0.useDHCP = lib.mkDefault true; 39 | 40 | nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; 41 | hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; 42 | } 43 | -------------------------------------------------------------------------------- /hardware/bacon.hardware-configuration.nix: -------------------------------------------------------------------------------- 1 | # Do not modify this file! It was generated by ‘nixos-generate-config’ 2 | # and may be overwritten by future invocations. Please make changes 3 | # to /etc/nixos/configuration.nix instead. 4 | { config, lib, pkgs, modulesPath, ... }: 5 | 6 | { 7 | imports = 8 | [ 9 | (modulesPath + "/installer/scan/not-detected.nix") 10 | ]; 11 | 12 | boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ]; 13 | boot.initrd.kernelModules = [ ]; 14 | boot.kernelModules = [ "kvm-intel" ]; 15 | boot.extraModulePackages = [ ]; 16 | 17 | fileSystems."/" = 18 | { 19 | device = "/dev/disk/by-uuid/16a9b047-c117-4e46-87b7-0401ef22661b"; 20 | fsType = "ext4"; 21 | }; 22 | 23 | fileSystems."/boot" = 24 | { 25 | device = "/dev/disk/by-uuid/C1BB-1322"; 26 | fsType = "vfat"; 27 | }; 28 | 29 | swapDevices = 30 | [{ device = "/dev/disk/by-uuid/5b44f38e-93a8-495e-a94c-9a335fc0df9e"; }]; 31 | 32 | # Enables DHCP on each ethernet and wireless interface. In case of scripted networking 33 | # (the default) this is the recommended approach. When using systemd-networkd it's 34 | # still possible to use this option, but it's recommended to use it in conjunction 35 | # with explicit per-interface declarations with `networking.interfaces..useDHCP`. 36 | networking.useDHCP = lib.mkDefault true; 37 | # networking.interfaces.eno1.useDHCP = lib.mkDefault true; 38 | # networking.interfaces.wlp4s0.useDHCP = lib.mkDefault true; 39 | 40 | nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; 41 | hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; 42 | } 43 | -------------------------------------------------------------------------------- /home/zsh/default.nix: -------------------------------------------------------------------------------- 1 | { pkgs, ... }: 2 | { 3 | programs.zsh = { 4 | enable = true; 5 | autosuggestion.enable = true; 6 | enableCompletion = true; 7 | syntaxHighlighting.enable = true; 8 | 9 | plugins = [ 10 | { 11 | name = "zsh-syntax-highlighting"; 12 | src = pkgs.fetchFromGitHub { 13 | owner = "zsh-users"; 14 | repo = "zsh-syntax-highlighting"; 15 | rev = "0.8.0"; 16 | sha256 = "iJdWopZwHpSyYl5/FQXEW7gl/SrKaYDEtTH9cGP7iPo="; 17 | }; 18 | } 19 | { 20 | name = "wakatime"; 21 | src = pkgs.fetchFromGitHub { 22 | owner = "sobolevn"; 23 | repo = "wakatime-zsh-plugin"; 24 | rev = "69c6028b0c8f72e2afcfa5135b1af29afb49764a"; 25 | sha256 = "pA1VOkzbHQjmcI2skzB/OP5pXn8CFUz5Ok/GLC6KKXQ="; 26 | }; 27 | } 28 | { 29 | name = "zsh-autocomplete"; 30 | src = pkgs.fetchFromGitHub { 31 | owner = "marlonrichert"; 32 | repo = "zsh-autocomplete"; 33 | rev = "23.07.13"; 34 | sha256 = "0NW0TI//qFpUA2Hdx6NaYdQIIUpRSd0Y4NhwBbdssCs="; 35 | }; 36 | } 37 | ]; 38 | 39 | shellAliases = { 40 | ll = "ls -l"; 41 | dodo = "shutdown now"; 42 | lz = "lazygit"; 43 | ufda = "echo 'use flake' | tee .envrc && direnv allow"; 44 | }; 45 | 46 | oh-my-zsh = { 47 | enable = true; 48 | 49 | custom = "$HOME/extra/zsh"; 50 | theme = "sigma"; 51 | 52 | plugins = [ 53 | "git" 54 | "ssh-agent" 55 | ]; 56 | }; 57 | }; 58 | 59 | home.file.omz_zsh_theme = { 60 | source = ./sigma.zsh-theme; 61 | target = "extra/zsh/themes/sigma.zsh-theme"; 62 | }; 63 | } 64 | -------------------------------------------------------------------------------- /assets/nixos_logo_custom_colors.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /hardware/sigmachine.hardware-configuration.nix: -------------------------------------------------------------------------------- 1 | # Do not modify this file! It was generated by ‘nixos-generate-config’ 2 | # and may be overwritten by future invocations. Please make changes 3 | # to /etc/nixos/configuration.nix instead. 4 | { config, lib, pkgs, modulesPath, ... }: 5 | 6 | { 7 | imports = 8 | [ 9 | (modulesPath + "/installer/scan/not-detected.nix") 10 | ]; 11 | 12 | boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "nvme" "usb_storage" "sd_mod" ]; 13 | boot.initrd.kernelModules = [ ]; 14 | boot.kernelModules = [ "kvm-intel" ]; 15 | boot.extraModulePackages = [ ]; 16 | 17 | fileSystems."/" = 18 | { 19 | device = "/dev/disk/by-uuid/6ad62d4c-97f4-40da-b0b3-2030dd8f74c0"; 20 | fsType = "ext4"; 21 | }; 22 | 23 | fileSystems."/boot" = 24 | { 25 | device = "/dev/disk/by-uuid/9497-656C"; 26 | fsType = "vfat"; 27 | options = [ "fmask=0022" "dmask=0022" ]; 28 | }; 29 | 30 | swapDevices = 31 | [{ device = "/dev/disk/by-uuid/31cd2224-f94a-4147-a461-41f040fdb1da"; }]; 32 | 33 | # Enables DHCP on each ethernet and wireless interface. In case of scripted networking 34 | # (the default) this is the recommended approach. When using systemd-networkd it's 35 | # still possible to use this option, but it's recommended to use it in conjunction 36 | # with explicit per-interface declarations with `networking.interfaces..useDHCP`. 37 | networking.useDHCP = lib.mkDefault true; 38 | # networking.interfaces.enp0s31f6.useDHCP = lib.mkDefault true; 39 | # networking.interfaces.wlp0s20f3.useDHCP = lib.mkDefault true; 40 | 41 | nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; 42 | hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; 43 | } 44 | -------------------------------------------------------------------------------- /home/kitty.nix: -------------------------------------------------------------------------------- 1 | { ... }: 2 | { 3 | programs.kitty = { 4 | enable = true; 5 | 6 | environment = { 7 | "LS_COLORS" = "1"; 8 | }; 9 | 10 | font = { 11 | name = "JetbrainsMono Nerd Font"; 12 | size = 9; 13 | }; 14 | 15 | settings = { 16 | # Window 17 | hide_window_decorations = "yew"; 18 | dynamic_background_opacity = "yes"; 19 | 20 | # Tabs 21 | tab_bar_min_tabs = 1; 22 | tab_bar_edge = "bottom"; 23 | tab_bar_style = "separator"; 24 | tab_separator = " | "; 25 | tab_title_template = "{title}{' :{}:'.format(num_windows) if num_windows > 1 else ''}"; 26 | 27 | # colors 28 | active_tab_foreground = "#0F0F1C"; 29 | active_tab_background = "#8B8AF1"; 30 | inactive_tab_foreground = "#B4C0EC"; 31 | inactive_tab_background = "#1A1C31"; 32 | tab_bar_background = "#0F0F1C"; 33 | 34 | foreground = "#CAD3F5"; 35 | background = "#1A1C31"; 36 | selection_foreground = "#000000"; 37 | selection_background = "#A7A5FB"; 38 | url_color = "#8B8AF1"; 39 | cursor = "#82E3F8"; 40 | 41 | color0 = "#0F0F1C"; 42 | color1 = "#D22942"; 43 | color2 = "#17B67C"; 44 | color3 = "#F2A174"; 45 | color4 = "#8C8AF1"; 46 | color5 = "#D78AF1"; 47 | color6 = "#8ADEF1"; 48 | color7 = "#CAD3F5"; 49 | color8 = "#A2B1E8"; 50 | color9 = "#DE4259"; 51 | color10 = "#3FD7A0"; 52 | color11 = "#EED49F"; 53 | color12 = "#A7A5FB"; 54 | color13 = "#E5A5FB"; 55 | color14 = "#A5EBFB"; 56 | color15 = "#CAD3F5"; 57 | 58 | # Other 59 | initial_window_width = 820; 60 | initial_window_height = 460; 61 | remember_window_size = "no"; 62 | 63 | window_padding_width = 5; 64 | # Aaaaaaaaaaaaaaaah the bell 65 | enable_audio_bell = false; 66 | }; 67 | }; 68 | } 69 | -------------------------------------------------------------------------------- /home/nvim/.vimrc: -------------------------------------------------------------------------------- 1 | let mapleader = "\" 2 | nnoremap pv :Ex 3 | 4 | set smartindent 5 | set tabstop=4 6 | set softtabstop=4 7 | set shiftwidth=4 8 | 9 | set expandtab 10 | set number 11 | set relativenumber 12 | 13 | set noswapfile 14 | set undodir=$HOME/.vim/undodir 15 | set undofile 16 | 17 | set colorcolumn=80 18 | set cursorline 19 | 20 | lua require("init") 21 | 22 | highlight Visual ctermfg=white ctermbg=blue cterm=bold 23 | 24 | function! DebugMsg(msg) abort 25 | if !exists("g:DebugMessages") 26 | let g:DebugMessages = [] 27 | endif 28 | call add(g:DebugMessages, a:msg) 29 | endfunction 30 | 31 | function! PrintDebugMsgs() abort 32 | if empty(get(g:, "DebugMessages", [])) 33 | echo "No debug messages." 34 | return 35 | endif 36 | for ln in g:DebugMessages 37 | echo "- " . ln 38 | endfor 39 | endfunction 40 | 41 | command DebugStatus call PrintDebugMsgs() 42 | 43 | function! LoadProjectLanguages() 44 | let l:project_root = finddir('.git', '.;') 45 | 46 | if !empty(l:project_root) 47 | let l:project_root = getcwd() . '/' . l:project_root 48 | endif 49 | 50 | if empty(l:project_root) 51 | return 52 | endif 53 | 54 | let l:project_root = substitute(l:project_root, '/\.git$', '', '') 55 | if isdirectory(l:project_root) 56 | execute 'set runtimepath+=' . l:project_root 57 | 58 | " project/ 59 | for f in split(glob(l:project_root . '/*.vim'), '\n') 60 | execute 'source ' . f 61 | endfor 62 | endif 63 | 64 | 65 | let l:lang_dir = l:project_root . '/languages' 66 | if isdirectory(l:lang_dir) 67 | execute 'set runtimepath+=' . l:lang_dir 68 | 69 | " project/languages 70 | for f in split(glob(l:lang_dir . '/*.vim'), '\n') 71 | execute 'source ' . f 72 | endfor 73 | endif 74 | 75 | endfunction 76 | 77 | 78 | autocmd BufEnter,BufNewFile * if &buftype == "" | call LoadProjectLanguages() 79 | -------------------------------------------------------------------------------- /system/_sigmachine.nix: -------------------------------------------------------------------------------- 1 | { config, pkgs, lib, ... }: { 2 | boot.loader.grub.gfxmodeEfi = lib.mkForce "1920x1200x32"; 3 | boot.initrd.kernelModules = [ "nvidia" ]; 4 | boot.extraModulePackages = [ config.boot.kernelPackages.nvidia_x11 ]; 5 | 6 | system = { 7 | copySystemConfiguration = false; 8 | stateVersion = "24.05"; 9 | }; 10 | 11 | virtualisation.docker.enable = true; 12 | 13 | hardware.bluetooth.enable = true; 14 | hardware.graphics = { 15 | enable = true; 16 | 17 | extraPackages = with pkgs; [ 18 | intel-media-driver 19 | libvdpau-va-gl 20 | nvidia-vaapi-driver 21 | intel-vaapi-driver 22 | libva-vdpau-driver 23 | vulkan-validation-layers 24 | mesa 25 | ]; 26 | }; 27 | 28 | services.xserver.videoDrivers = [ "nvidia" ]; 29 | hardware.nvidia = { 30 | powerManagement.enable = true; 31 | powerManagement.finegrained = true; 32 | open = false; 33 | 34 | nvidiaSettings = true; 35 | prime = { 36 | offload.enableOffloadCmd = true; 37 | offload.enable = true; 38 | }; 39 | 40 | package = config.boot.kernelPackages.nvidiaPackages.production; 41 | }; 42 | 43 | services.sshd.enable = true; 44 | programs.ladybird.enable = true; 45 | 46 | } // { 47 | services.tlp = { 48 | enable = true; 49 | settings = { 50 | USB_AUTOSUSPEND = 0; 51 | 52 | START_CHARGE_THRESH_BAT0 = 30; 53 | STOP_CHARGE_THRESH_BAT0 = 70; 54 | 55 | PLATFORM_PROFILE_ON_AC = "performance"; 56 | PLATFORM_PROFILE_ON_BAT = "low-power"; 57 | 58 | CPU_SCALING_GOVERNOR_ON_AC = "performance"; 59 | CPU_SCALING_GOVERNOR_ON_BAT = "powersave"; 60 | 61 | CPU_ENERGY_PERF_POLICY_ON_AC = "performance"; 62 | CPU_ENERGY_PERF_POLICY_ON_BAT = "power"; 63 | 64 | CPU_MIN_PERF_ON_AC = 0; 65 | CPU_MAX_PERF_ON_AC = 100; 66 | CPU_MIN_PERF_ON_BAT = 0; 67 | CPU_MAX_PERF_ON_BAT = 60; 68 | 69 | CPU_BOOST_ON_AC = 1; 70 | CPU_BOOST_ON_BAT = 0; 71 | 72 | CPU_HWP_DYN_BOOST_ON_AC = 1; 73 | CPU_HWP_DYN_BOOST_ON_BAT = 0; 74 | 75 | TPSMAPI_ENABLE = 1; 76 | }; 77 | }; 78 | 79 | virtualisation = { 80 | docker.enable = true; 81 | libvirtd.enable = true; 82 | }; 83 | } 84 | -------------------------------------------------------------------------------- /home/nvim/lua/lazy_plugins.lua: -------------------------------------------------------------------------------- 1 | local attach_user_config = function(settings) 2 | settings["config"] = function() 3 | require("plugins." .. settings["_user_conf"]) 4 | end 5 | 6 | return settings 7 | end 8 | 9 | local apply_shortcut = function(plugins) 10 | for _, plugin in ipairs(plugins) do 11 | if type(plugin) == "table" then 12 | if plugin._user_conf then 13 | attach_user_config(plugin) 14 | end 15 | end 16 | end 17 | return plugins 18 | end 19 | 20 | return apply_shortcut({ 21 | "lukoshkin/highlight-whitespace", 22 | { 23 | "catppuccin/nvim", 24 | _user_conf = "colorscheme", 25 | name = "catppuccin", 26 | priority = 1000, 27 | }, 28 | { "wakatime/vim-wakatime", lazy = false }, 29 | "Sigmanificient/vim-epitech", 30 | { 31 | "VonHeikemen/lsp-zero.nvim", 32 | _user_conf = "lsp", 33 | branch = "v2.x", 34 | dependencies = { 35 | "neovim/nvim-lspconfig", 36 | "hrsh7th/nvim-cmp", 37 | "hrsh7th/cmp-nvim-lsp", 38 | "L3MON4D3/LuaSnip", 39 | }, 40 | }, 41 | { 42 | "nvim-lualine/lualine.nvim", 43 | _user_conf = "lualine", 44 | dependencies = { "nvim-tree/nvim-web-devicons", opt = true }, 45 | }, 46 | { 47 | "akinsho/toggleterm.nvim", 48 | _user_conf = "toggleterm", 49 | }, 50 | { 51 | "tanvirtin/vgit.nvim", 52 | dependencies = { "nvim-lua/plenary.nvim" }, 53 | config = function() 54 | require("vgit").setup() 55 | end, 56 | }, 57 | { 58 | "nvim-treesitter/nvim-treesitter", 59 | _user_conf = "treesitter", 60 | run = function() 61 | local ts_update = require("nvim-treesitter.install") 62 | .update({ with_sync = true }) 63 | ts_update() 64 | end, 65 | }, 66 | { 67 | _user_conf = "nvimtree", 68 | "nvim-tree/nvim-tree.lua", 69 | }, 70 | { 71 | "nvim-telescope/telescope.nvim", 72 | _user_conf = "telescope", 73 | dependencies = { "nvim-lua/plenary.nvim" }, 74 | }, 75 | { 76 | 'folke/todo-comments.nvim', 77 | dependencies = { 'nvim-lua/plenary.nvim' }, 78 | }, 79 | { 80 | 'mrcjkb/haskell-tools.nvim', 81 | version = '^4', -- Recommended 82 | lazy = false, -- This plugin is already lazy 83 | }, 84 | { 85 | "https://git.sr.ht/~whynothugo/lsp_lines.nvim", 86 | config = function () 87 | require("lsp_lines").setup() 88 | end 89 | }, 90 | }) 91 | -------------------------------------------------------------------------------- /home/default.nix: -------------------------------------------------------------------------------- 1 | { pkgs, username, osConfig, spicePkgs, ... }: 2 | { 3 | catppuccin = { 4 | enable = true; 5 | flavor = "macchiato"; 6 | accent = "blue"; 7 | }; 8 | 9 | imports = [ 10 | ./nvim 11 | 12 | ./bash 13 | ./btop 14 | ./neofetch 15 | ./picom 16 | ./dunst 17 | ./qtile 18 | ./tmux 19 | ./zsh 20 | 21 | ./betterlockscreen 22 | ./cursor.nix 23 | ./extra_files.nix 24 | ./flameshot.nix 25 | ./git.nix 26 | ./gtk.nix 27 | ./kitty.nix 28 | ]; 29 | 30 | xdg.configFile."xkb/symbols/us_qwerty-fr".source = 31 | "${pkgs.callPackage ./../system/qwerty-fr.nix {}}" 32 | + "/usr/share/X11/xkb/symbols/us_qwerty-fr"; 33 | home = { 34 | inherit username; 35 | homeDirectory = "/home/${username}"; 36 | 37 | keyboard = null; # using custom layout 38 | 39 | stateVersion = "22.11"; 40 | sessionVariables.EDITOR = "nvim"; 41 | 42 | packages = with pkgs; [ 43 | # settings 44 | arandr 45 | brightnessctl 46 | python3Packages.iwlib 47 | 48 | # messaging 49 | vesktop 50 | firefox 51 | teams-for-linux 52 | 53 | # dev 54 | nix-output-monitor 55 | gnumake 56 | lazygit 57 | tokei 58 | wakatime-cli 59 | prismlauncher 60 | 61 | # misc 62 | ] ++ (if osConfig.services.pipewire.enable then [ 63 | pamixer 64 | pavucontrol 65 | ] else [ ]) ++ [ 66 | gimp 67 | neofetch 68 | pass 69 | 70 | # utils 71 | peek 72 | ripgrep 73 | dconf 74 | zip 75 | unzip 76 | ]; 77 | }; 78 | 79 | manual.manpages.enable = false; 80 | programs = { 81 | dircolors.enable = true; 82 | 83 | direnv = { 84 | enable = true; 85 | nix-direnv.enable = true; 86 | enableZshIntegration = true; 87 | }; 88 | 89 | feh.enable = true; 90 | home-manager.enable = true; 91 | zoxide = { 92 | enable = true; 93 | enableZshIntegration = true; 94 | }; 95 | }; 96 | 97 | programs.spicetify = { 98 | enable = true; 99 | theme = spicePkgs.themes.catppuccin; 100 | colorScheme = "mocha"; 101 | enabledExtensions = [ 102 | spicePkgs.extensions.fullAppDisplay 103 | spicePkgs.extensions.hidePodcasts 104 | spicePkgs.extensions.playNext 105 | spicePkgs.extensions.adblock 106 | spicePkgs.extensions.wikify 107 | ]; 108 | }; 109 | } 110 | -------------------------------------------------------------------------------- /home/qtile/src/controls.py: -------------------------------------------------------------------------------- 1 | from libqtile.config import Click, Drag, Key, KeyChord, EzKey 2 | from libqtile.lazy import lazy 3 | 4 | mod = "mod4" 5 | 6 | mouse = [ 7 | Drag( 8 | [mod], 9 | "Button1", 10 | lazy.window.set_position_floating(), 11 | start=lazy.window.get_position()), 12 | Drag( 13 | [mod], 14 | "Button3", 15 | lazy.window.set_size_floating(), 16 | start=lazy.window.get_size()), 17 | Click([mod], "Button2", lazy.window.bring_to_front()), 18 | ] 19 | 20 | keys = [ 21 | KeyChord([mod], "i", [EzKey("M-i", lazy.ungrab_all_chords())], mode=True, name="Vm Mode"), 22 | Key([mod], "o", lazy.window.toggle_fullscreen()), 23 | 24 | Key([mod], "v", lazy.spawn("kitty -e pulsemixer")), 25 | Key([mod], "h", lazy.spawn("kitty -e nmtui")), 26 | Key([mod, "shift"], "v", lazy.spawn("pavucontrol")), 27 | Key([mod], "l", lazy.spawn("betterlockscreen -l")), 28 | Key([mod], "f", lazy.window.toggle_floating()), 29 | Key([mod], "b", lazy.spawn("firefox")), 30 | Key([], "Print", lazy.spawn("flameshot gui --clipboard")), 31 | Key([mod], "space", lazy.layout.next()), 32 | Key([mod, "shift"], "h", lazy.layout.shuffle_left()), 33 | Key([mod], "n", lazy.layout.normalize()), 34 | Key([mod], "Return", lazy.spawn("kitty")), 35 | Key([mod], "Tab", lazy.next_layout()), 36 | Key([mod], "w", lazy.window.kill()), 37 | Key([mod, "control"], "r", lazy.reload_config()), 38 | Key([mod, "control"], "q", lazy.shutdown()), 39 | Key([mod], "r", lazy.spawncmd()), 40 | # Backlight 41 | Key([], "XF86MonBrightnessUp", lazy.spawn("brightnessctl set +5%")), 42 | Key([], "XF86MonBrightnessDown", lazy.spawn("brightnessctl set 5%-")), 43 | # Volume 44 | Key([], "XF86AudioMute", lazy.spawn("pamixer --toggle-mute")), 45 | Key([], "XF86AudioLowerVolume", lazy.spawn("pamixer --decrease 5")), 46 | Key([], "XF86AudioRaiseVolume", lazy.spawn("pamixer --increase 5")), 47 | Key( 48 | [mod, "control"], 49 | "Right", 50 | lazy.layout.grow_right(), 51 | lazy.layout.grow(), 52 | lazy.layout.increase_ratio(), 53 | lazy.layout.delete(), 54 | ), 55 | Key( 56 | [mod, "control"], 57 | "Left", 58 | lazy.layout.grow_left(), 59 | lazy.layout.shrink(), 60 | lazy.layout.decrease_ratio(), 61 | lazy.layout.add(), 62 | ), 63 | Key( 64 | [mod, "control"], 65 | "Up", 66 | lazy.layout.grow_up(), 67 | lazy.layout.shrink(), 68 | lazy.layout.decrease_ratio(), 69 | lazy.layout.add(), 70 | ), 71 | Key( 72 | [mod, "control"], 73 | "Down", 74 | lazy.layout.grow_down(), 75 | lazy.layout.shrink(), 76 | lazy.layout.decrease_ratio(), 77 | lazy.layout.add(), 78 | ), 79 | ] 80 | -------------------------------------------------------------------------------- /home/qtile/src/config.py: -------------------------------------------------------------------------------- 1 | from functools import partial 2 | 3 | import os 4 | from libqtile.bar import Gap 5 | from libqtile.config import DropDown, Group, Key, Match, Screen, ScratchPad 6 | from libqtile.layout.columns import Columns 7 | from libqtile.layout.floating import Floating 8 | from libqtile.lazy import lazy 9 | 10 | from bar import Bar, widget_defaults 11 | from controls import mod, keys 12 | 13 | import colors 14 | 15 | 16 | _gap = Gap(4) 17 | Screen = partial( 18 | Screen, 19 | bottom=_gap, left=_gap, right=_gap, 20 | wallpaper=os.path.expanduser("~/assets/wallpaper.png"), 21 | wallpaper_mode="fill" 22 | ) 23 | 24 | screens = [Screen(top=Bar(i)) for i in range(2)] 25 | 26 | layouts = [ 27 | Columns( 28 | border_width=2, 29 | margin=4, 30 | border_focus=colors.BLUE_DARK, 31 | border_normal=colors.BG_DARK 32 | ) 33 | ] 34 | 35 | floating_layout = Floating( 36 | border_width=2, 37 | border_focus=colors.BLUE_DARK, 38 | border_normal=colors.BG_DARK, 39 | float_rules=[ 40 | *Floating.default_float_rules, 41 | Match(wm_class="pavucontrol"), 42 | Match(wm_class="confirmreset"), 43 | Match(wm_class="ssh-askpass"), 44 | Match(title="pinentry"), 45 | Match(title="kitty"), 46 | ], 47 | ) 48 | 49 | class _Group(Group): 50 | 51 | def __init__(self, name: str, key: str): 52 | self.name = name 53 | self.key = key 54 | 55 | super().__init__(name) 56 | self.setup_keys() 57 | 58 | @classmethod 59 | def setup_single_keys(cls): 60 | toggle_term = Key( 61 | [mod, "shift"], "space", 62 | lazy.group["scratchpad"].dropdown_toggle("term"), 63 | ) 64 | 65 | keys.append(toggle_term) 66 | 67 | def setup_keys(self): 68 | move = Key([mod], self.key, lazy.group[self.name].toscreen()) 69 | switch = Key( 70 | [mod, "shift"], self.key, 71 | lazy.window.togroup(self.name, switch_group=True), 72 | ) 73 | 74 | keys.extend((move, switch)) 75 | 76 | _scratchpad_defaults = dict( 77 | x=0.05, 78 | y=0.05, 79 | opacity=0.95, 80 | height=0.9, 81 | width=0.9, 82 | on_focus_lost_hide=False 83 | ) 84 | 85 | _scratchpads = [ 86 | ScratchPad( 87 | "scratchpad", 88 | [DropDown("term", "kitty", **_scratchpad_defaults)] 89 | ) 90 | ] 91 | 92 | _Group.setup_single_keys() 93 | groups = _scratchpads + [_Group(lb, k) for lb, k in zip("ζπδωλσς", "1234567")] 94 | 95 | extension_defaults = widget_defaults.copy() 96 | 97 | dgroups_key_binder = None 98 | dgroups_app_rules = [] 99 | 100 | follow_mouse_focus = True 101 | bring_front_click = False 102 | cursor_warp = False 103 | 104 | auto_fullscreen = True 105 | focus_on_window_activation = "smart" 106 | reconfigure_screens = True 107 | 108 | auto_minimize = False 109 | wmname = "Qtile" 110 | -------------------------------------------------------------------------------- /screenshot.nix: -------------------------------------------------------------------------------- 1 | { pkgs, nixos-system, username }: 2 | let 3 | vm-config = { config, lib, ... }: 4 | { 5 | boot.consoleLogLevel = lib.mkForce 7; 6 | 7 | environment.systemPackages = with pkgs; let 8 | auto-cbonsai = (pkgs.writeShellScriptBin "auto_cbonsai" '' 9 | xdotool getactivewindow windowmove 80 80 10 | xdotool getactivewindow windowsize 400 400 11 | 12 | clear 13 | sleep 1 14 | 15 | cbonsai --seed=4 16 | ''); 17 | 18 | auto-neofetch = (pkgs.writeShellScriptBin "auto_neofetch" '' 19 | clear 20 | sleep 1 21 | 22 | xdotool getactivewindow windowmove 1080 600 23 | neofetch 24 | ''); 25 | in 26 | [ 27 | cbonsai 28 | neofetch 29 | ] ++ [ 30 | kitty 31 | picom 32 | xdotool 33 | ] ++ [ 34 | auto-cbonsai 35 | auto-neofetch 36 | ]; 37 | 38 | users.users.${username} = { 39 | isNormalUser = true; 40 | uid = 1000; 41 | }; 42 | 43 | services = { 44 | xserver = { 45 | enable = true; 46 | displayManager = { 47 | startx.enable = lib.mkForce false; 48 | autoLogin = { 49 | enable = true; 50 | user = username; 51 | }; 52 | }; 53 | }; 54 | }; 55 | 56 | virtualisation.resolution = { 57 | x = 1920; 58 | y = 1080; 59 | }; 60 | }; 61 | in 62 | pkgs.testers.runNixOSTest { 63 | name = "screenshot-system"; 64 | 65 | node = { 66 | inherit pkgs; 67 | 68 | specialArgs = nixos-system.conf.specialArgs; 69 | pkgsReadOnly = false; 70 | }; 71 | 72 | nodes = { 73 | machine.imports = 74 | nixos-system.conf.modules 75 | ++ [ vm-config ]; 76 | }; 77 | 78 | testScript = '' 79 | with subtest("ensure x starts"): 80 | machine.wait_for_x() 81 | machine.wait_for_file("/home/${username}/.Xauthority") 82 | machine.succeed("xauth merge ~${username}/.Xauthority") 83 | 84 | # it might take some time to boot up the session... 85 | machine.sleep(10) 86 | 87 | with subtest("ensure we can open a new terminal"): 88 | machine.send_key("meta_l-ret") 89 | machine.wait_for_window("zsh", timeout=10) 90 | 91 | machine.shell_interact() 92 | machine.sleep(2) 93 | 94 | for key in "auto_cbonsai": 95 | machine.send_key(key) 96 | machine.send_key("ret") 97 | machine.sleep(15) 98 | 99 | machine.send_key("meta_l-ret") 100 | machine.sleep(2) 101 | 102 | machine.shell_interact() 103 | machine.sleep(2) 104 | 105 | for key in "auto_neofetch": 106 | machine.send_key(key) 107 | machine.send_key("ret") 108 | 109 | machine.sleep(20) 110 | machine.screenshot("terminal") 111 | ''; 112 | } 113 | -------------------------------------------------------------------------------- /home/qtile/src/bar.py: -------------------------------------------------------------------------------- 1 | import colors 2 | 3 | from functools import partialmethod 4 | 5 | from libqtile import widget 6 | from libqtile.lazy import lazy 7 | 8 | import re 9 | import subprocess 10 | 11 | from libqtile import bar, widget 12 | 13 | 14 | widget_defaults = dict( 15 | font="JetBrainsMono Nerd Font", 16 | fontsize=12, 17 | padding=12, 18 | background=colors.BG_DARK.with_alpha(0.9), 19 | foreground=colors.TEXT_LIGHT, 20 | ) 21 | 22 | 23 | def mk_overrides(cls, **conf): 24 | init_method = partialmethod(cls.__init__, **conf) 25 | return type(cls.__name__, (cls,), {"__init__": init_method}) 26 | 27 | 28 | Battery = mk_overrides( 29 | widget.Battery, 30 | charge_char="⚡", 31 | discharge_char="🔋", 32 | empty_char="🪫", 33 | not_charging_char="⚡", 34 | format="{char}{percent:2.0%}", 35 | background=colors.BG_DARK.with_alpha(0.7), 36 | foreground=colors.TEXT_LIGHT, 37 | low_background=colors.RED_DARK.with_alpha(0.7), 38 | low_percentage=0.1, 39 | update_interval=5 40 | ) 41 | 42 | CPUGraph = mk_overrides( 43 | widget.CPUGraph, type="line", line_width=1, border_width=0 44 | ) 45 | 46 | CPUTemp = mk_overrides( 47 | widget.ThermalZone, zone="/sys/class/thermal/thermal_zone5/temp", high=70, 48 | crit=95, update_interval=1 49 | ) 50 | 51 | MemoryGraph = mk_overrides( 52 | widget.MemoryGraph, type="line", graph_color="8B8AF1", line_width=1, border_width=0 53 | ) 54 | 55 | Net = mk_overrides( 56 | widget.Net, use_bits=True, format="{down:6.2f}{down_suffix:<2}↓↑{up:6.2f}{up_suffix:<2}" 57 | ) 58 | 59 | GroupBox = mk_overrides( 60 | widget.GroupBox, 61 | highlight_method="line", 62 | disable_drag=True, 63 | other_screen_border=colors.BLUE_VERY_DARK, 64 | other_current_screen_border=colors.BLUE_VERY_DARK, 65 | this_screen_border=colors.BLUE_DARK, 66 | this_current_screen_border=colors.BLUE_DARK, 67 | block_highlight_text_color=colors.TEXT_LIGHT, 68 | highlight_color=[colors.BG_LIGHT, colors.BG_LIGHT], 69 | inactive=colors.TEXT_INACTIVE, 70 | active=colors.TEXT_LIGHT, 71 | ) 72 | 73 | Mpris2 = mk_overrides( 74 | widget.Mpris2, 75 | objname="org.mpris.MediaPlayer2.spotify", 76 | format='{xesam:title} - {xesam:artist}', 77 | ) 78 | 79 | Memory = mk_overrides( 80 | widget.Memory, 81 | format="{MemUsed: .3f}Mb", 82 | mouse_callbacks={ 83 | "Button1": lazy.spawn( 84 | "kitty" 85 | " -o initial_window_width=1720" 86 | " -o initial_window_height=860" 87 | " -e btop" 88 | ) 89 | }, 90 | ) 91 | 92 | TaskList = mk_overrides( 93 | widget.TaskList, 94 | icon_size=0, 95 | fontsize=12, 96 | borderwidth=0, 97 | margin=0, 98 | padding=4, 99 | txt_floating="", 100 | highlight_method="block", 101 | title_width_method="uniform", 102 | spacing=8, 103 | foreground=colors.TEXT_LIGHT, 104 | background=colors.BG_DARK.with_alpha(0.8), 105 | border=colors.BG_DARK.with_alpha(0.9), 106 | ) 107 | 108 | Separator = mk_overrides(widget.Spacer, length=4) 109 | 110 | Clock = mk_overrides(widget.Clock, format="%A, %b %-d %H:%M:%S") 111 | 112 | QuickExit = mk_overrides( 113 | widget.QuickExit, default_text="⏻", countdown_format="{}" 114 | ) 115 | 116 | Prompt = mk_overrides( 117 | widget.Prompt, 118 | prompt=">", 119 | bell_style="visual", 120 | background=colors.BG_DARK, 121 | foreground=colors.TEXT_LIGHT, 122 | padding=8, 123 | ) 124 | 125 | Systray = mk_overrides( 126 | widget.Systray, 127 | icon_size=14, 128 | padding=8 129 | ) 130 | 131 | 132 | class Bar(bar.Bar): 133 | _widgets = [ 134 | GroupBox, 135 | Separator, 136 | TaskList, 137 | Separator, 138 | Prompt, 139 | Mpris2, 140 | Battery, 141 | Net, 142 | Memory, 143 | MemoryGraph, 144 | CPUGraph, 145 | CPUTemp, 146 | Separator, 147 | widget.Volume, 148 | Clock, 149 | Separator, 150 | QuickExit, 151 | ] 152 | 153 | def __init__(self, id_): 154 | self.id = id_ 155 | super().__init__( 156 | widgets=self._build_widgets(), 157 | size=24, 158 | background=colors.BG_DARK, 159 | margin=[0, 0, 8, 0] 160 | ) 161 | 162 | def is_desktop(self): 163 | machine_info = subprocess.check_output( 164 | ["hostnamectl", "status"], universal_newlines=True) 165 | m = re.search(r"Chassis: (\w+)\s.*\n", machine_info) 166 | chassis_type = "desktop" if m is None else m.group(1) 167 | 168 | return chassis_type == "desktop" 169 | 170 | def _build_widgets(self): 171 | if self.is_desktop(): 172 | self._widgets = [w for w in self._widgets if w != Battery] 173 | 174 | widgets = [widget_cls() for widget_cls in self._widgets] 175 | if self.id == 0: 176 | widgets.insert(12, Systray()) 177 | 178 | return widgets 179 | 180 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |
2 | 3 | NixOS 4 | 5 | # ❖ Sigma's Dotfiles ❖ 6 | 7 | ![GitHub Repo stars](https://img.shields.io/github/stars/Sigmanificient/dotfiles?style=for-the-badge&labelColor=1B2330&color=807EDD) ![GitHub last commit](https://img.shields.io/github/last-commit/Sigmanificient/dotfiles?style=for-the-badge&labelColor=1B2330&color=807EDD) ![GitHub repo size](https://img.shields.io/github/repo-size/Sigmanificient/dotfiles?style=for-the-badge&labelColor=1B2330&color=807EDD) 8 | 9 | *Configuration files for my GNU+Linux system.* 10 | 11 | # 12 | Repository Banner 13 | Qtile has floating window support 14 |
15 | 16 | ## :wrench: INSTALLATION 17 | 18 | ### :paperclip: Standard 19 | 20 | > **Warning** 21 | > Some additional configuration may be required 22 | 23 | I. Clone the repository 24 | 25 | > **Note** 26 | > I personally clone the repository as my home[^clone_as_home]. 27 | ```bash 28 | git clone https://github.com/Sigmanificient/dotfiles.git --recurse-submodules 29 | cd dotfiles 30 | ``` 31 | 32 | II. Copy the configuration 33 | ```bash 34 | cp -r .* ~ 35 | ``` 36 | 37 | ### :cherry_blossom: Nix 38 | 39 | Copy the flake config 40 | 41 | ```bash 42 | cp flake* ~ 43 | ``` 44 | 45 | > Note: Don't forget to edit the appropriate settings such as username & hardware configuration 46 | > You can use `cp /etc/nixos/hardware-configuration.nix .config/nixos/hardware-configuration.nix` 47 | 48 | ``` 49 | sudo nixos-rebuild switch --flake '.' 50 | ``` 51 | 52 | > **Warning** 53 | > I do not use a display manager, use `startx` 54 | > or setup your own display manager 55 | 56 | ## :bookmark_tabs: DETAILS 57 | 58 | Qtile is a tiling window manager 59 | 60 | - Linux Kernel: [Xanmod](https://xanmod.org/) 61 | - Desktop Environment: [Qtile](http://www.qtile.org) 62 | - Terminal Emulator: [Kitty](https://sw.kovidgoyal.net/kitty) 63 | - Shell: [Zsh](https://www.zsh.org/) with [Oh my Zsh](https://ohmyz.sh/) 64 | - Compositor: [Picom](https://github.com/yshui/picom) 65 | - Notifier: [dunst](https://dunst-project.org) 66 | 67 | ### Dev 68 | 69 | Qtile is a tiling window manager 70 | 71 | - Jetbrains IDE Suite: [PyCharm](https://www.jetbrains.com/pycharm), [CLion](https://www.jetbrains.com/clion), ... 72 | - GUI Text Editor: [Sublime Text](https://www.sublimetext.com) 73 | - TUI Commit Helper: [Lazygit](https://github.com/jesseduffield/lazygit) 74 | 75 | ### Other Utilities 76 | 77 | - TUI File manager: [Ranger](https://ranger.github.io) 78 | - GUI File manager: [Thunar](https://docs.xfce.org/xfce/thunar/start) 79 | - Resource monitor: [Bpytop](https://github.com/aristocratos/bpytop) 80 | - screenshot tool: [Flameshot](https://flameshot.org) 81 | 82 | Qtile is a tiling window manager 83 | 84 | ## :art: Colors 85 | 86 | 87 | 88 | 94 | 95 |
89 | 90 | This color scheme is inspired from 91 | Catppuccin Mocha 92 | 93 |
96 | 97 | ![tty](assets/screenshots/palette.png) 98 | 99 | | Black | Red | Green | Yellow | Blue | Magenta | Cyan | White | 100 | |----------|----------|----------|----------|----------|----------|----------|----------| 101 | | `0F0F1C` | `D22942` | `17B67C` | `F2A174` | `8B8AF1` | `D78AF1` | `4FCFEB` | `B4C0EC` | 102 | | `1A1C31` | `DE4259` | `3FD7A0` | `EEC09F` | `A7A5FB` | `E5A5FB` | `82E3F8` | `CAD3F5` | 103 | 104 | 105 | 106 | [^clone_as_home]: 107 | Cloning as the home directory 108 |
109 | I. Bare Clone 110 | ```bash 111 | git clone --bare https://github.com/Sigmanificient/dotfiles.git $HOME/.git 112 | git --git-dir=$HOME/.git --work-tree=$HOME remote set-url origin git@github.com:Sigmanificient/dotfiles 113 | git config --local core.bare false 114 | ``` 115 | II. Update 116 | ```bash 117 | git reset --hard HEAD 118 | git pull --rebase 119 | ``` 120 | III. Submodules 121 | ```bash 122 | git submodule init 123 | git submodule update --init --force 124 | ``` 125 | IV. Fix history 126 | ```bash 127 | git clone https://github.com/Sigmanificient/dotfiles.git tmp 128 | cp tmp/.git ~ -r 129 | git add . 130 | ``` 131 | 132 |
133 | cat 134 |
135 | -------------------------------------------------------------------------------- /system/default.nix: -------------------------------------------------------------------------------- 1 | { username, pkgs, ... }: 2 | { 3 | imports = [ 4 | ./polkit.nix 5 | ]; 6 | 7 | catppuccin = { 8 | enable = true; 9 | flavor = "macchiato"; 10 | }; 11 | 12 | boot = { 13 | consoleLogLevel = 0; 14 | initrd.verbose = false; 15 | 16 | kernelPackages = pkgs.linuxPackages_latest; 17 | loader = { 18 | efi.canTouchEfiVariables = true; 19 | grub = { 20 | enable = true; 21 | efiSupport = true; 22 | device = "nodev"; 23 | gfxmodeEfi = "1920x1280x32"; 24 | }; 25 | }; 26 | }; 27 | 28 | nix = { 29 | gc = { 30 | automatic = true; 31 | options = "--delete-older-than 90d"; 32 | }; 33 | optimise.automatic = true; 34 | settings = { 35 | experimental-features = [ "nix-command" "flakes" ]; 36 | trusted-users = [ "root" "@wheel" ]; 37 | keep-outputs = true; 38 | keep-derivations = true; 39 | auto-optimise-store = true; 40 | }; 41 | }; 42 | 43 | networking = { 44 | networkmanager.enable = true; 45 | firewall.enable = false; 46 | }; 47 | 48 | time.timeZone = "Europe/Paris"; 49 | i18n.defaultLocale = "en_US.UTF-8"; 50 | 51 | console = { 52 | earlySetup = true; 53 | useXkbConfig = true; 54 | font = "${pkgs.terminus_font}/share/consolefonts/ter-116n.psf.gz"; 55 | packages = with pkgs; [ terminus_font ]; 56 | colors = [ 57 | "11111E" # Black 58 | "E12541" # red 59 | "14C67B" # green 60 | "FFAC7D" # yellow 61 | "7270FF" # blue 62 | "FD8DFF" # magenta 63 | "75DFED" # cyan 64 | "A4B1E3" # white 65 | 66 | "474B77" # light black 67 | "DE6876" # light red 68 | "63D961" # light green 69 | "FFDA8D" # light yellow 70 | "AAA9FA" # light blue 71 | "E5A5FB" # light magenta 72 | "BEEDF8" # light cyan 73 | "DBE2FB" # light white 74 | ]; 75 | }; 76 | 77 | programs = { 78 | command-not-found.enable = false; 79 | dconf.enable = true; 80 | 81 | gnupg.agent = { 82 | enable = true; 83 | enableSSHSupport = true; 84 | }; 85 | 86 | thunderbird.enable = true; 87 | zsh.enable = true; 88 | 89 | nix-ld = { 90 | enable = true; 91 | libraries = [ pkgs.glibc ]; 92 | }; 93 | 94 | steam.enable = true; 95 | }; 96 | 97 | security.rtkit.enable = true; 98 | services = { 99 | libinput = { 100 | enable = true; 101 | mouse.accelProfile = "flat"; 102 | touchpad.accelProfile = "flat"; 103 | }; 104 | 105 | gvfs.enable = true; 106 | tumbler.enable = true; 107 | 108 | pipewire = { 109 | enable = true; 110 | alsa.enable = true; 111 | alsa.support32Bit = true; 112 | pulse.enable = true; 113 | }; 114 | 115 | printing = { 116 | enable = true; 117 | drivers = [ pkgs.cups-toshiba-estudio ]; 118 | }; 119 | 120 | xserver = { 121 | enable = true; 122 | displayManager.startx.enable = true; 123 | xkb = { 124 | layout = "custom"; 125 | extraLayouts.custom = { 126 | description = "oui oui baguette"; 127 | languages = [ "eng" ]; 128 | symbolsFile = 129 | let 130 | ouioui = (pkgs.callPackage ./qwerty-fr.nix { }); 131 | in 132 | "${ouioui}/share/X11/xkb/symbols/us_qwerty-fr"; 133 | }; 134 | }; 135 | windowManager.qtile.enable = true; 136 | }; 137 | }; 138 | 139 | users.users.${username} = { 140 | isNormalUser = true; 141 | shell = pkgs.zsh; 142 | extraGroups = [ 143 | "audio" 144 | "docker" 145 | "networkmanager" 146 | "libvirtd" 147 | "wheel" 148 | "dialout" 149 | ]; 150 | initialPassword = "hello"; 151 | }; 152 | 153 | fonts.packages = with pkgs; [ 154 | nerd-fonts.jetbrains-mono 155 | fira-code 156 | fira-code-symbols 157 | liberation_ttf 158 | noto-fonts 159 | noto-fonts-cjk-sans 160 | noto-fonts-color-emoji 161 | proggyfonts 162 | apl386 163 | ]; 164 | 165 | documentation.dev.enable = true; 166 | environment = { 167 | etc.issue.text = (builtins.readFile ./issuerc); 168 | pathsToLink = [ "/share/nix-direnv" ]; 169 | sessionVariables = { 170 | MOZ_USE_XINPUT2 = "1"; 171 | XDG_CACHE_HOME = "$HOME/.cache"; 172 | XDG_CONFIG_HOME = "$HOME/.config"; 173 | XDG_DATA_HOME = "$HOME/.local/share"; 174 | XDG_STATE_HOME = "$HOME/.local/state"; 175 | }; 176 | 177 | shells = [ pkgs.zsh ]; 178 | systemPackages = with pkgs; [ 179 | alsa-utils 180 | modemmanager 181 | networkmanagerapplet 182 | playerctl 183 | 184 | git 185 | tree 186 | vim 187 | wget 188 | 189 | libnotify 190 | virt-manager 191 | 192 | man-pages 193 | man-pages-posix 194 | 195 | picom-pijulius 196 | ]; 197 | }; 198 | 199 | qt.style = "adwaita-dark"; 200 | xdg.portal = { 201 | enable = true; 202 | config.common.default = "*"; 203 | extraPortals = with pkgs; [ 204 | xdg-desktop-portal-wlr 205 | xdg-desktop-portal-gtk 206 | ]; 207 | }; 208 | 209 | zramSwap.enable = true; 210 | security.pam.services.i3lock.enable = true; 211 | } 212 | -------------------------------------------------------------------------------- /flake.nix: -------------------------------------------------------------------------------- 1 | { 2 | description = "Sigma dotfiles"; 3 | 4 | inputs = { 5 | nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; 6 | 7 | nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-25.05"; 8 | flake-utils.url = "github:numtide/flake-utils"; 9 | 10 | catppuccin = { 11 | type = "github"; 12 | owner = "catppuccin"; 13 | repo = "nix"; 14 | }; 15 | 16 | nixos-hardware.url = "github:NixOS/nixos-hardware"; 17 | 18 | home-manager = { 19 | url = "github:nix-community/home-manager"; 20 | inputs.nixpkgs.follows = "nixpkgs"; 21 | }; 22 | 23 | pre-commit-hooks = { 24 | url = "github:cachix/git-hooks.nix"; 25 | inputs.nixpkgs.follows = "nixpkgs"; 26 | }; 27 | 28 | spicetify-nix.url = "github:Gerg-L/spicetify-nix"; 29 | }; 30 | 31 | outputs = 32 | { self 33 | , nixpkgs 34 | , nixpkgs-stable 35 | , home-manager 36 | , nixos-hardware 37 | , flake-utils 38 | , pre-commit-hooks 39 | , catppuccin 40 | , spicetify-nix 41 | , ... 42 | }: 43 | let 44 | inherit (nixpkgs) lib; 45 | 46 | username = "sigmanificient"; 47 | system = "x86_64-linux"; 48 | 49 | pkgs = import nixpkgs ({ 50 | inherit system; 51 | config.allowUnfree = true; 52 | }); 53 | 54 | pkgs-stable = import nixpkgs-stable { inherit system; }; 55 | 56 | home-manager-config = home-base: { 57 | home-manager = { 58 | useGlobalPkgs = true; 59 | useUserPackages = true; 60 | users.${username}.imports = [ 61 | catppuccin.homeModules.catppuccin 62 | spicetify-nix.homeManagerModules.spicetify 63 | home-base 64 | ]; 65 | 66 | extraSpecialArgs = { 67 | inherit catppuccin username system pkgs-stable; 68 | 69 | spicePkgs = spicetify-nix.legacyPackages.${system}; 70 | }; 71 | }; 72 | }; 73 | 74 | in 75 | flake-utils.lib.eachSystem [ system ] 76 | (system: rec { 77 | formatter = pkgs.nixpkgs-fmt; 78 | 79 | checks.pre-commit-check = pre-commit-hooks.lib.${system}.run { 80 | src = ./.; 81 | hooks.nixpkgs-fmt = { 82 | enable = true; 83 | name = lib.mkForce "Nix files format"; 84 | }; 85 | }; 86 | 87 | devShells.default = pkgs.mkShell { 88 | inherit (checks.pre-commit-check) shellHook; 89 | packages = [ pkgs.python312Packages.qtile ]; 90 | }; 91 | 92 | packages = { 93 | screenshot-system = import ./screenshot.nix { 94 | inherit pkgs username; 95 | 96 | # lets use the lightest one 97 | nixos-system = self.nixosConfigurations.Gha; 98 | }; 99 | 100 | qwerty-fr = pkgs.callPackage ./system/qwerty-fr.nix { }; 101 | }; 102 | }) 103 | // ( 104 | let 105 | nhw-mod = nixos-hardware.nixosModules; 106 | 107 | mk-base-paths = hostname: 108 | let 109 | key = lib.toLower hostname; 110 | in 111 | [ 112 | ./system/_${key}.nix 113 | ./hardware/${key}.hardware-configuration.nix 114 | ]; 115 | 116 | mk-system = 117 | { hostname 118 | , hasHostSpecific ? true 119 | , specific-modules ? [ ] 120 | , base ? ./system 121 | , home-base ? ./home 122 | }: 123 | let 124 | conf = { 125 | specialArgs = { 126 | inherit catppuccin username; 127 | }; 128 | 129 | modules = [ base ] 130 | ++ (lib.optionals hasHostSpecific (mk-base-paths hostname)) 131 | ++ [ 132 | { networking.hostName = hostname; } 133 | { nixpkgs.hostPlatform = system; } 134 | { nixpkgs.pkgs = pkgs; } 135 | ] ++ [ 136 | catppuccin.nixosModules.catppuccin 137 | home-manager.nixosModules.home-manager 138 | (home-manager-config home-base) 139 | ] ++ specific-modules; 140 | }; 141 | in 142 | (lib.nixosSystem conf) // { inherit conf; }; 143 | in 144 | { 145 | nixosConfigurations = { 146 | Sigmachine = mk-system { 147 | hostname = "Sigmachine"; 148 | 149 | specific-modules = (with nhw-mod; [ 150 | lenovo-thinkpad-p16s-intel-gen2 151 | ]); 152 | }; 153 | 154 | Bacon = mk-system { 155 | hostname = "Bacon"; 156 | 157 | specific-modules = (with nhw-mod; [ 158 | common-cpu-intel 159 | common-pc-ssd 160 | ]); 161 | }; 162 | 163 | Toaster = mk-system { 164 | hostname = "Toaster"; 165 | }; 166 | 167 | Gha = mk-system { 168 | hostname = "Gha"; 169 | hasHostSpecific = false; 170 | 171 | base = ./system/minimal.nix; 172 | home-base = ./home/minimal.nix; 173 | 174 | specific-modules = [ 175 | { 176 | system.stateVersion = "25.05"; 177 | fileSystems."/" = { 178 | device = "nodev"; 179 | }; 180 | } 181 | ]; 182 | }; 183 | }; 184 | } 185 | ); 186 | } 187 | -------------------------------------------------------------------------------- /flake.lock: -------------------------------------------------------------------------------- 1 | { 2 | "nodes": { 3 | "catppuccin": { 4 | "inputs": { 5 | "nixpkgs": "nixpkgs" 6 | }, 7 | "locked": { 8 | "lastModified": 1764325801, 9 | "narHash": "sha256-LQ7tsrXs1wuB6KBwUctL3JlUsG/FWI2pCI6NkoO52dk=", 10 | "owner": "catppuccin", 11 | "repo": "nix", 12 | "rev": "a696fed6b9b6aa89ef495842cdca3fc2a7cef0de", 13 | "type": "github" 14 | }, 15 | "original": { 16 | "owner": "catppuccin", 17 | "repo": "nix", 18 | "type": "github" 19 | } 20 | }, 21 | "flake-compat": { 22 | "flake": false, 23 | "locked": { 24 | "lastModified": 1761588595, 25 | "narHash": "sha256-XKUZz9zewJNUj46b4AJdiRZJAvSZ0Dqj2BNfXvFlJC4=", 26 | "owner": "edolstra", 27 | "repo": "flake-compat", 28 | "rev": "f387cd2afec9419c8ee37694406ca490c3f34ee5", 29 | "type": "github" 30 | }, 31 | "original": { 32 | "owner": "edolstra", 33 | "repo": "flake-compat", 34 | "type": "github" 35 | } 36 | }, 37 | "flake-utils": { 38 | "inputs": { 39 | "systems": "systems" 40 | }, 41 | "locked": { 42 | "lastModified": 1731533236, 43 | "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", 44 | "owner": "numtide", 45 | "repo": "flake-utils", 46 | "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", 47 | "type": "github" 48 | }, 49 | "original": { 50 | "owner": "numtide", 51 | "repo": "flake-utils", 52 | "type": "github" 53 | } 54 | }, 55 | "gitignore": { 56 | "inputs": { 57 | "nixpkgs": [ 58 | "pre-commit-hooks", 59 | "nixpkgs" 60 | ] 61 | }, 62 | "locked": { 63 | "lastModified": 1709087332, 64 | "narHash": "sha256-HG2cCnktfHsKV0s4XW83gU3F57gaTljL9KNSuG6bnQs=", 65 | "owner": "hercules-ci", 66 | "repo": "gitignore.nix", 67 | "rev": "637db329424fd7e46cf4185293b9cc8c88c95394", 68 | "type": "github" 69 | }, 70 | "original": { 71 | "owner": "hercules-ci", 72 | "repo": "gitignore.nix", 73 | "type": "github" 74 | } 75 | }, 76 | "home-manager": { 77 | "inputs": { 78 | "nixpkgs": [ 79 | "nixpkgs" 80 | ] 81 | }, 82 | "locked": { 83 | "lastModified": 1764534535, 84 | "narHash": "sha256-TkAB7JTfQXq8wpBcCZ8cH/Dlkd/96J0VjFKqwhKl7kI=", 85 | "owner": "nix-community", 86 | "repo": "home-manager", 87 | "rev": "784a83782ce00985bee65c588d4c315ec0b5a172", 88 | "type": "github" 89 | }, 90 | "original": { 91 | "owner": "nix-community", 92 | "repo": "home-manager", 93 | "type": "github" 94 | } 95 | }, 96 | "nixos-hardware": { 97 | "locked": { 98 | "lastModified": 1764440730, 99 | "narHash": "sha256-ZlJTNLUKQRANlLDomuRWLBCH5792x+6XUJ4YdFRjtO4=", 100 | "owner": "NixOS", 101 | "repo": "nixos-hardware", 102 | "rev": "9154f4569b6cdfd3c595851a6ba51bfaa472d9f3", 103 | "type": "github" 104 | }, 105 | "original": { 106 | "owner": "NixOS", 107 | "repo": "nixos-hardware", 108 | "type": "github" 109 | } 110 | }, 111 | "nixpkgs": { 112 | "locked": { 113 | "lastModified": 1763966396, 114 | "narHash": "sha256-6eeL1YPcY1MV3DDStIDIdy/zZCDKgHdkCmsrLJFiZf0=", 115 | "owner": "NixOS", 116 | "repo": "nixpkgs", 117 | "rev": "5ae3b07d8d6527c42f17c876e404993199144b6a", 118 | "type": "github" 119 | }, 120 | "original": { 121 | "owner": "NixOS", 122 | "ref": "nixos-unstable", 123 | "repo": "nixpkgs", 124 | "type": "github" 125 | } 126 | }, 127 | "nixpkgs-stable": { 128 | "locked": { 129 | "lastModified": 1764316264, 130 | "narHash": "sha256-82L+EJU+40+FIdeG4gmUlOF1jeSwlf2AwMarrpdHF6o=", 131 | "owner": "NixOS", 132 | "repo": "nixpkgs", 133 | "rev": "9a7b80b6f82a71ea04270d7ba11b48855681c4b0", 134 | "type": "github" 135 | }, 136 | "original": { 137 | "owner": "NixOS", 138 | "ref": "nixos-25.05", 139 | "repo": "nixpkgs", 140 | "type": "github" 141 | } 142 | }, 143 | "nixpkgs_2": { 144 | "locked": { 145 | "lastModified": 1764242076, 146 | "narHash": "sha256-sKoIWfnijJ0+9e4wRvIgm/HgE27bzwQxcEmo2J/gNpI=", 147 | "owner": "NixOS", 148 | "repo": "nixpkgs", 149 | "rev": "2fad6eac6077f03fe109c4d4eb171cf96791faa4", 150 | "type": "github" 151 | }, 152 | "original": { 153 | "owner": "NixOS", 154 | "ref": "nixos-unstable", 155 | "repo": "nixpkgs", 156 | "type": "github" 157 | } 158 | }, 159 | "nixpkgs_3": { 160 | "locked": { 161 | "lastModified": 1762977756, 162 | "narHash": "sha256-4PqRErxfe+2toFJFgcRKZ0UI9NSIOJa+7RXVtBhy4KE=", 163 | "owner": "NixOS", 164 | "repo": "nixpkgs", 165 | "rev": "c5ae371f1a6a7fd27823bc500d9390b38c05fa55", 166 | "type": "github" 167 | }, 168 | "original": { 169 | "owner": "NixOS", 170 | "ref": "nixos-unstable", 171 | "repo": "nixpkgs", 172 | "type": "github" 173 | } 174 | }, 175 | "pre-commit-hooks": { 176 | "inputs": { 177 | "flake-compat": "flake-compat", 178 | "gitignore": "gitignore", 179 | "nixpkgs": [ 180 | "nixpkgs" 181 | ] 182 | }, 183 | "locked": { 184 | "lastModified": 1763988335, 185 | "narHash": "sha256-QlcnByMc8KBjpU37rbq5iP7Cp97HvjRP0ucfdh+M4Qc=", 186 | "owner": "cachix", 187 | "repo": "git-hooks.nix", 188 | "rev": "50b9238891e388c9fdc6a5c49e49c42533a1b5ce", 189 | "type": "github" 190 | }, 191 | "original": { 192 | "owner": "cachix", 193 | "repo": "git-hooks.nix", 194 | "type": "github" 195 | } 196 | }, 197 | "root": { 198 | "inputs": { 199 | "catppuccin": "catppuccin", 200 | "flake-utils": "flake-utils", 201 | "home-manager": "home-manager", 202 | "nixos-hardware": "nixos-hardware", 203 | "nixpkgs": "nixpkgs_2", 204 | "nixpkgs-stable": "nixpkgs-stable", 205 | "pre-commit-hooks": "pre-commit-hooks", 206 | "spicetify-nix": "spicetify-nix" 207 | } 208 | }, 209 | "spicetify-nix": { 210 | "inputs": { 211 | "nixpkgs": "nixpkgs_3", 212 | "systems": "systems_2" 213 | }, 214 | "locked": { 215 | "lastModified": 1763985453, 216 | "narHash": "sha256-vUqODgLIjeyHN7DP8dVx7oH9yB/L8qcxpN//4EmMQcM=", 217 | "owner": "Gerg-L", 218 | "repo": "spicetify-nix", 219 | "rev": "89cd40c646ec5b12e5c20c0e18f082e7629d4819", 220 | "type": "github" 221 | }, 222 | "original": { 223 | "owner": "Gerg-L", 224 | "repo": "spicetify-nix", 225 | "type": "github" 226 | } 227 | }, 228 | "systems": { 229 | "locked": { 230 | "lastModified": 1681028828, 231 | "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", 232 | "owner": "nix-systems", 233 | "repo": "default", 234 | "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", 235 | "type": "github" 236 | }, 237 | "original": { 238 | "owner": "nix-systems", 239 | "repo": "default", 240 | "type": "github" 241 | } 242 | }, 243 | "systems_2": { 244 | "locked": { 245 | "lastModified": 1681028828, 246 | "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", 247 | "owner": "nix-systems", 248 | "repo": "default", 249 | "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", 250 | "type": "github" 251 | }, 252 | "original": { 253 | "owner": "nix-systems", 254 | "repo": "default", 255 | "type": "github" 256 | } 257 | } 258 | }, 259 | "root": "root", 260 | "version": 7 261 | } 262 | -------------------------------------------------------------------------------- /home/btop/btop.conf: -------------------------------------------------------------------------------- 1 | #? Config file for btop v. 1.2.13 2 | 3 | #* Name of a btop++/bpytop/bashtop formatted ".theme" file, "Default" and "TTY" for builtin themes. 4 | #* Themes should be placed in "../share/btop/themes" relative to binary or "$HOME/.config/btop/themes" 5 | color_theme = "TTY" 6 | 7 | #* If the theme set background should be shown, set to False if you want terminal background transparency. 8 | theme_background = False 9 | 10 | #* Sets if 24-bit truecolor should be used, will convert 24-bit colors to 256 color (6x6x6 color cube) if false. 11 | truecolor = True 12 | 13 | #* Set to true to force tty mode regardless if a real tty has been detected or not. 14 | #* Will force 16-color mode and TTY theme, set all graph symbols to "tty" and swap out other non tty friendly symbols. 15 | force_tty = False 16 | 17 | #* Define presets for the layout of the boxes. Preset 0 is always all boxes shown with default settings. Max 9 presets. 18 | #* Format: "box_name:P:G,box_name:P:G" P=(0 or 1) for alternate positions, G=graph symbol to use for box. 19 | #* Use whitespace " " as separator between different presets. 20 | #* Example: "cpu:0:default,mem:0:tty,proc:1:default cpu:0:braille,proc:0:tty" 21 | presets = "cpu:1:default,proc:0:default cpu:0:default,mem:0:default,net:0:default cpu:0:block,net:0:tty" 22 | 23 | #* Set to True to enable "h,j,k,l,g,G" keys for directional control in lists. 24 | #* Conflicting keys for h:"help" and k:"kill" is accessible while holding shift. 25 | vim_keys = False 26 | 27 | #* Rounded corners on boxes, is ignored if TTY mode is ON. 28 | rounded_corners = True 29 | 30 | #* Default symbols to use for graph creation, "braille", "block" or "tty". 31 | #* "braille" offers the highest resolution but might not be included in all fonts. 32 | #* "block" has half the resolution of braille but uses more common characters. 33 | #* "tty" uses only 3 different symbols but will work with most fonts and should work in a real TTY. 34 | #* Note that "tty" only has half the horizontal resolution of the other two, so will show a shorter historical view. 35 | graph_symbol = "braille" 36 | 37 | # Graph symbol to use for graphs in cpu box, "default", "braille", "block" or "tty". 38 | graph_symbol_cpu = "default" 39 | 40 | # Graph symbol to use for graphs in cpu box, "default", "braille", "block" or "tty". 41 | graph_symbol_mem = "default" 42 | 43 | # Graph symbol to use for graphs in cpu box, "default", "braille", "block" or "tty". 44 | graph_symbol_net = "default" 45 | 46 | # Graph symbol to use for graphs in cpu box, "default", "braille", "block" or "tty". 47 | graph_symbol_proc = "default" 48 | 49 | #* Manually set which boxes to show. Available values are "cpu mem net proc", separate values with whitespace. 50 | shown_boxes = "cpu mem net proc" 51 | 52 | #* Update time in milliseconds, recommended 2000 ms or above for better sample times for graphs. 53 | update_ms = 500 54 | 55 | #* Processes sorting, "pid" "program" "arguments" "threads" "user" "memory" "cpu lazy" "cpu direct", 56 | #* "cpu lazy" sorts top process over time (easier to follow), "cpu direct" updates top process directly. 57 | proc_sorting = "user" 58 | 59 | #* Reverse sorting order, True or False. 60 | proc_reversed = False 61 | 62 | #* Show processes as a tree. 63 | proc_tree = False 64 | 65 | #* Use the cpu graph colors in the process list. 66 | proc_colors = True 67 | 68 | #* Use a darkening gradient in the process list. 69 | proc_gradient = True 70 | 71 | #* If process cpu usage should be of the core it's running on or usage of the total available cpu power. 72 | proc_per_core = False 73 | 74 | #* Show process memory as bytes instead of percent. 75 | proc_mem_bytes = True 76 | 77 | #* Show cpu graph for each process. 78 | proc_cpu_graphs = True 79 | 80 | #* Use /proc/[pid]/smaps for memory information in the process info box (very slow but more accurate) 81 | proc_info_smaps = False 82 | 83 | #* Show proc box on left side of screen instead of right. 84 | proc_left = False 85 | 86 | #* (Linux) Filter processes tied to the Linux kernel(similar behavior to htop). 87 | proc_filter_kernel = False 88 | 89 | #* Sets the CPU stat shown in upper half of the CPU graph, "total" is always available. 90 | #* Select from a list of detected attributes from the options menu. 91 | cpu_graph_upper = "total" 92 | 93 | #* Sets the CPU stat shown in lower half of the CPU graph, "total" is always available. 94 | #* Select from a list of detected attributes from the options menu. 95 | cpu_graph_lower = "total" 96 | 97 | #* Toggles if the lower CPU graph should be inverted. 98 | cpu_invert_lower = True 99 | 100 | #* Set to True to completely disable the lower CPU graph. 101 | cpu_single_graph = False 102 | 103 | #* Show cpu box at bottom of screen instead of top. 104 | cpu_bottom = False 105 | 106 | #* Shows the system uptime in the CPU box. 107 | show_uptime = True 108 | 109 | #* Show cpu temperature. 110 | check_temp = True 111 | 112 | #* Which sensor to use for cpu temperature, use options menu to select from list of available sensors. 113 | cpu_sensor = "Auto" 114 | 115 | #* Show temperatures for cpu cores also if check_temp is True and sensors has been found. 116 | show_coretemp = True 117 | 118 | #* Set a custom mapping between core and coretemp, can be needed on certain cpus to get correct temperature for correct core. 119 | #* Use lm-sensors or similar to see which cores are reporting temperatures on your machine. 120 | #* Format "x:y" x=core with wrong temp, y=core with correct temp, use space as separator between multiple entries. 121 | #* Example: "4:0 5:1 6:3" 122 | cpu_core_map = "" 123 | 124 | #* Which temperature scale to use, available values: "celsius", "fahrenheit", "kelvin" and "rankine". 125 | temp_scale = "celsius" 126 | 127 | #* Use base 10 for bits/bytes sizes, KB = 1000 instead of KiB = 1024. 128 | base_10_sizes = False 129 | 130 | #* Show CPU frequency. 131 | show_cpu_freq = True 132 | 133 | #* Draw a clock at top of screen, formatting according to strftime, empty string to disable. 134 | #* Special formatting: /host = hostname | /user = username | /uptime = system uptime 135 | clock_format = "%X" 136 | 137 | #* Update main ui in background when menus are showing, set this to false if the menus is flickering too much for comfort. 138 | background_update = True 139 | 140 | #* Custom cpu model name, empty string to disable. 141 | custom_cpu_name = "" 142 | 143 | #* Optional filter for shown disks, should be full path of a mountpoint, separate multiple values with whitespace " ". 144 | #* Begin line with "exclude=" to change to exclude filter, otherwise defaults to "most include" filter. Example: disks_filter="exclude=/boot /home/user". 145 | disks_filter = "" 146 | 147 | #* Show graphs instead of meters for memory values. 148 | mem_graphs = True 149 | 150 | #* Show mem box below net box instead of above. 151 | mem_below_net = False 152 | 153 | #* Count ZFS ARC in cached and available memory. 154 | zfs_arc_cached = True 155 | 156 | #* If swap memory should be shown in memory box. 157 | show_swap = True 158 | 159 | #* Show swap as a disk, ignores show_swap value above, inserts itself after first disk. 160 | swap_disk = True 161 | 162 | #* If mem box should be split to also show disks info. 163 | show_disks = True 164 | 165 | #* Filter out non physical disks. Set this to False to include network disks, RAM disks and similar. 166 | only_physical = True 167 | 168 | #* Read disks list from /etc/fstab. This also disables only_physical. 169 | use_fstab = True 170 | 171 | #* Setting this to True will hide all datasets, and only show ZFS pools. (IO stats will be calculated per-pool) 172 | zfs_hide_datasets = False 173 | 174 | #* Set to true to show available disk space for privileged users. 175 | disk_free_priv = False 176 | 177 | #* Toggles if io activity % (disk busy time) should be shown in regular disk usage view. 178 | show_io_stat = True 179 | 180 | #* Toggles io mode for disks, showing big graphs for disk read/write speeds. 181 | io_mode = False 182 | 183 | #* Set to True to show combined read/write io graphs in io mode. 184 | io_graph_combined = False 185 | 186 | #* Set the top speed for the io graphs in MiB/s (100 by default), use format "mountpoint:speed" separate disks with whitespace " ". 187 | #* Example: "/mnt/media:100 /:20 /boot:1". 188 | io_graph_speeds = "" 189 | 190 | #* Set fixed values for network graphs in Mebibits. Is only used if net_auto is also set to False. 191 | net_download = 100 192 | 193 | net_upload = 100 194 | 195 | #* Use network graphs auto rescaling mode, ignores any values set above and rescales down to 10 Kibibytes at the lowest. 196 | net_auto = True 197 | 198 | #* Sync the auto scaling for download and upload to whichever currently has the highest scale. 199 | net_sync = True 200 | 201 | #* Starts with the Network Interface specified here. 202 | net_iface = "" 203 | 204 | #* Show battery stats in top right if battery is present. 205 | show_battery = True 206 | 207 | #* Which battery to use if multiple are present. "Auto" for auto detection. 208 | selected_battery = "Auto" 209 | 210 | #* Set loglevel for "~/.config/btop/btop.log" levels are: "ERROR" "WARNING" "INFO" "DEBUG". 211 | #* The level set includes all lower levels, i.e. "DEBUG" will show all logging info. 212 | log_level = "WARNING" -------------------------------------------------------------------------------- /LICENCE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | --------------------------------------------------------------------------------