โ„๏ธ 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: added git module

adjoly 6dfb92cc 0a5655bc

+39 -55
-1
home/adjoly/cli-app.nix
··· 4 4 home.packages = with pkgs; [ 5 5 git 6 6 fzf 7 - tmux 8 7 btop 9 8 zoxide 10 9 direnv
-3
home/adjoly/home-desktop.nix
··· 14 14 ./services/nextcloud.nix 15 15 ./services/darkman.nix 16 16 17 - ./programs/git.nix 18 17 ./programs/pogit.nix 19 18 ./programs/kitty.nix 20 19 ./programs/neovim.nix ··· 25 24 inputs.catppuccin.homeModules.catppuccin 26 25 ]; 27 26 28 - # tmux.enable = true; 29 27 gui.enable = true; 30 - # cli.enable = true; 31 28 32 29 home = { 33 30 packages = with pkgs; [
-11
home/adjoly/programs/git.nix
··· 1 - { ... }: 2 - 3 - { 4 - programs = { 5 - git = { 6 - enable = true; 7 - userName = "adjoly"; 8 - userEmail = "adamjly@proton.me"; 9 - }; 10 - }; 11 - }
+6
modules/home-manager/cli/default.nix
··· 1 + { 2 + imports = [ 3 + ./tmux.nix 4 + ./git.nix 5 + ]; 6 + }
+16
modules/home-manager/cli/git.nix
··· 1 + { config, lib, pkgs, ...}: 2 + 3 + { 4 + options = { 5 + git.enable = lib.mkEnableOption "Can be used to enable git config"; 6 + }; 7 + config = lib.mkIf config.git.enable { 8 + programs = { 9 + git = { 10 + enable = true; 11 + userName = lib.mkDefault "adjoly"; 12 + userEmail = lib.mkDefault "adamjly@proton.me"; 13 + }; 14 + }; 15 + }; 16 + }
+6 -25
modules/home-manager/default.nix
··· 2 2 let 3 3 cli-conf = lib.mkIf config.cli.enable { 4 4 tmux.enable = lib.mkDefault true; 5 + git.enable = lib.mkDefault true; 5 6 }; 6 7 gui-conf = lib.mkIf config.gui.enable { 8 + cli.enable = true; 7 9 }; 8 10 in 9 11 { 10 12 imports = [ 11 - ./tmux.nix 13 + ./cli 14 + ./gui 12 15 ]; 13 16 14 17 options = { 15 - cli = { 16 - enable = lib.mkOption { 17 - type = lib.types.bool; 18 - description = '' 19 - Can be used to enable all the default cli configs i got 20 - ''; 21 - example = lib.literalExample true; 22 - default = false; 23 - }; 24 - }; 25 - gui = { 26 - enable = lib.mkOption { 27 - type = lib.types.bool; 28 - description = '' 29 - Can be used to enable all the default gui configs i got. 30 - It also enable `default.cli` 31 - ''; 32 - example = lib.literalExample true; 33 - default = false; 34 - }; 35 - }; 18 + cli.enable = lib.mkEnableOption "Can be used to enable all the default cli configs i got"; 19 + gui.enable = lib.mkEnableOption "Can be used to enable all the default gui configs i got. It also enable `default.cli`"; 36 20 }; 37 21 38 22 config = lib.mkMerge [ 39 23 cli-conf 40 24 gui-conf 41 - (lib.mkIf config.gui.enable { 42 - cli.enable = true; 43 - }) 44 25 ]; 45 26 46 27 }
+5
modules/home-manager/gui/default.nix
··· 1 + { 2 + imports = [ 3 + 4 + ]; 5 + }
+6 -15
modules/home-manager/tmux.nix modules/home-manager/cli/tmux.nix
··· 6 6 }: 7 7 { 8 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 - }; 9 + enable = lib.mkEnableOption "Can be used to enable my tmux config"; 17 10 }; 18 11 19 12 config = lib.mkIf config.tmux.enable { ··· 28 21 keyMode = "vi"; 29 22 baseIndex = 1; 30 23 clock24 = true; 31 - plugins = 32 - with pkgs; 33 - [ 34 - tmuxPlugins.tmux-fzf 35 - tmuxPlugins.vim-tmux-navigator 36 - tmuxPlugins.sensible 37 - ]; 24 + plugins = with pkgs; [ 25 + tmuxPlugins.tmux-fzf 26 + tmuxPlugins.vim-tmux-navigator 27 + tmuxPlugins.sensible 28 + ]; 38 29 extraConfig = '' 39 30 set-option -g renumber-windows on 40 31 bind-key -n C-x kill-pane