โ„๏ธ My personnal NixOS configuration
nix-flake nixos-configuration linux dotfiles flake nix nix-config nixos nixos-flake linux-desktop
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

ใ€Œ๐Ÿ—๏ธใ€ wip: started making module for easier config

adjoly 4ee263b7 c8c371aa

+79 -58
home/adjoly/adjust-brightness/default.nix pkgs/adjust-brightness/default.nix
+6 -3
home/adjoly/home-desktop.nix
··· 1 1 { inputs, pkgs, ... }: 2 2 { 3 3 imports = [ 4 - ./adjust-brightness 4 + ../../pkgs/adjust-brightness 5 + ../../modules/home-manager 6 + 5 7 ./cli-app.nix 6 8 ./wm/hyprland.nix 7 9 ./wm/monitor-desktop.nix ··· 13 15 ./services/darkman.nix 14 16 15 17 ./programs/git.nix 16 - ./programs/tmux.nix 17 18 ./programs/pogit.nix 18 19 ./programs/kitty.nix 19 20 ./programs/neovim.nix ··· 24 25 inputs.catppuccin.homeModules.catppuccin 25 26 ]; 26 27 28 + tmux.enable = true; 29 + 27 30 home = { 28 31 packages = with pkgs; [ 29 32 vlc ··· 34 37 kittysay 35 38 gearlever 36 39 hyprpaper 37 - strawberry 40 + strawberry 38 41 libreoffice 39 42 nextcloud-client 40 43 ];
+4 -1
home/adjoly/home-lite.nix
··· 1 1 { inputs, pkgs, ... }: 2 2 { 3 3 imports = [ 4 + ../../modules/home-manager 5 + 4 6 ./gtk.nix 5 7 ./cli-app.nix 6 8 ./wm/hyprland.nix ··· 12 14 ./services/darkman.nix 13 15 14 16 ./programs/git.nix 15 - ./programs/tmux.nix 16 17 ./programs/pogit.nix 17 18 ./programs/kitty.nix 18 19 ./programs/neovim.nix ··· 22 23 23 24 inputs.catppuccin.homeManagerModules.catppuccin 24 25 ]; 26 + 27 + config.tmux.enable = true; 25 28 26 29 home = { 27 30 packages = with pkgs; [
-53
home/adjoly/programs/tmux.nix
··· 1 - { pkgs, ... }: 2 - 3 - { 4 - programs.tmux = { 5 - enable = true; 6 - terminal = "tmux-256color"; 7 - prefix = "C-a"; 8 - mouse = true; 9 - keyMode = "vi"; 10 - baseIndex = 1; 11 - clock24 = true; 12 - plugins = with pkgs; [ 13 - tmuxPlugins.tmux-fzf 14 - # { 15 - # plugin = tmuxPlugins.resurrect; 16 - # extraConfig = '' 17 - # set -g @resurrect-capture-pane-contents 'on' 18 - # ''; 19 - # } 20 - # { 21 - # plugin = tmuxPlugins.continuum; 22 - # extraConfig = '' 23 - # set -g @continuum-boot 'on' 24 - # set -g @continuum-restore 'on' 25 - # set -g @continuum-save-interval '5' # minutes 26 - # ''; 27 - # } 28 - tmuxPlugins.vim-tmux-navigator 29 - tmuxPlugins.sensible 30 - ]; 31 - extraConfig = '' 32 - set-option -g renumber-windows on 33 - bind-key -n C-x kill-pane 34 - bind -n M-H previous-window 35 - bind -n M-L next-window 36 - bind-key "C-l" run-shell -b "${pkgs.tmuxPlugins.tmux-fzf}/share/tmux-plugins/tmux-fzf/scripts/session.sh switch" 37 - 38 - # Status 39 - set -g status-right '%Y-%m-%d %H:%M ' 40 - set -g status-left ''' 41 - set -g status-position bottom 42 - 43 - # Window status 44 - setw -g window-status-current-format ' #I #W #F ' 45 - setw -g window-status-current-style 'fg=#303446 bg=#babbf2' 46 - setw -g window-status-format ' #I #[fg=white]#W #[fg=mauve]#F ' 47 - 48 - # Pane status 49 - set -g pane-border-style 'fg=#292c3c' 50 - 51 - ''; 52 - }; 53 - }
-1
home/adjoly/themes/catppuccin.nix
··· 14 14 flavor = lib.mkDefault "frappe"; 15 15 }; 16 16 gh-dash.enable = lib.mkDefault true; 17 - tmux.enable = lib.mkDefault true; 18 17 kitty.enable = lib.mkDefault false; 19 18 tofi.enable = lib.mkDefault true; 20 19 fzf.enable = lib.mkDefault true;
+7
modules/home-manager/default.nix
··· 1 + { ... }: 2 + 3 + { 4 + imports = [ 5 + ./tmux.nix 6 + ]; 7 + }
+62
modules/home-manager/tmux.nix
··· 1 + { 2 + config, 3 + pkgs, 4 + lib, 5 + ... 6 + }: 7 + { 8 + options.tmux = { 9 + enable = lib.mkOption { 10 + type = lib.types.bool; 11 + description = '' 12 + Can be used to enable my tmux config 13 + ''; 14 + example = lib.literalExample "true"; 15 + default = false; 16 + }; 17 + }; 18 + 19 + config = lib.mkIf config.tmux.enable { 20 + 21 + catppuccin.tmux.enable = true; 22 + 23 + programs.tmux = { 24 + enable = true; 25 + terminal = "tmux-256color"; 26 + prefix = "C-a"; 27 + mouse = true; 28 + keyMode = "vi"; 29 + baseIndex = 1; 30 + clock24 = true; 31 + plugins = 32 + with pkgs; 33 + [ 34 + tmuxPlugins.tmux-fzf 35 + tmuxPlugins.vim-tmux-navigator 36 + tmuxPlugins.sensible 37 + ]; 38 + extraConfig = '' 39 + set-option -g renumber-windows on 40 + bind-key -n C-x kill-pane 41 + bind -n M-H previous-window 42 + bind -n M-L next-window 43 + bind-key "C-l" run-shell -b "${pkgs.tmuxPlugins.tmux-fzf}/share/tmux-plugins/tmux-fzf/scripts/session.sh switch" 44 + 45 + # Status 46 + set -g status-right '%Y-%m-%d %H:%M ' 47 + set -g status-left ''' 48 + set -g status-position bottom 49 + 50 + # Window status 51 + setw -g window-status-current-format ' #I #W #F ' 52 + setw -g window-status-current-style 'fg=#303446 bg=#babbf2' 53 + setw -g window-status-format ' #I #[fg=white]#W #[fg=mauve]#F ' 54 + 55 + # Pane status 56 + set -g pane-border-style 'fg=#292c3c' 57 + 58 + ''; 59 + }; 60 + 61 + }; 62 + }