โ„๏ธ 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 cli and gui module to enable everything all at once

adjoly 0a5655bc 4ee263b7

+48 -7
+3 -1
home/adjoly/home-desktop.nix
··· 25 25 inputs.catppuccin.homeModules.catppuccin 26 26 ]; 27 27 28 - tmux.enable = true; 28 + # tmux.enable = true; 29 + gui.enable = true; 30 + # cli.enable = true; 29 31 30 32 home = { 31 33 packages = with pkgs; [
+44 -5
modules/home-manager/default.nix
··· 1 - { ... }: 1 + { config, lib, ... }: 2 + let 3 + cli-conf = lib.mkIf config.cli.enable { 4 + tmux.enable = lib.mkDefault true; 5 + }; 6 + gui-conf = lib.mkIf config.gui.enable { 7 + }; 8 + in 9 + { 10 + imports = [ 11 + ./tmux.nix 12 + ]; 13 + 14 + 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 + }; 36 + }; 2 37 3 - { 4 - imports = [ 5 - ./tmux.nix 6 - ]; 38 + config = lib.mkMerge [ 39 + cli-conf 40 + gui-conf 41 + (lib.mkIf config.gui.enable { 42 + cli.enable = true; 43 + }) 44 + ]; 45 + 7 46 }
+1 -1
modules/home-manager/tmux.nix
··· 11 11 description = '' 12 12 Can be used to enable my tmux config 13 13 ''; 14 - example = lib.literalExample "true"; 14 + example = lib.literalExample true; 15 15 default = false; 16 16 }; 17 17 };