Modularize individual configs

This commit is contained in:
DashieTM 2024-08-24 22:43:03 +02:00
parent 903088cf12
commit d207826769
4 changed files with 3 additions and 3 deletions

View file

@ -84,7 +84,7 @@
programs = { programs = {
nix-ld = { nix-ld = {
enable = true; enable = true;
nix-ld.libraries = with pkgs; [ jdk zlib ]; libraries = with pkgs; [ jdk zlib ];
}; };
direnv = { direnv = {
package = pkgs.direnv; package = pkgs.direnv;

View file

@ -29,5 +29,6 @@
./virtualbox.nix ./virtualbox.nix
./xone.nix ./xone.nix
./yazi ./yazi
./kitty.nix
]; ];
} }

View file

@ -8,7 +8,7 @@
}; };
}; };
config = lib.mkIf config.mods.fish.enable config = lib.mkIf config.mods.fish.enable
(lib.optionalAttrs (options ? programs.fish) { fish = { enable = true; }; } (lib.optionalAttrs (options ? programs.fish) { programs.fish = { enable = true; }; }
// lib.optionalAttrs (options ? xdg.configFile) { // lib.optionalAttrs (options ? xdg.configFile) {
xdg.configFile."fish/config.fish" = { xdg.configFile."fish/config.fish" = {
text = '' text = ''

View file

@ -35,7 +35,6 @@ in {
./xdg.nix ./xdg.nix
./oxi/default.nix ./oxi/default.nix
./themes/default.nix ./themes/default.nix
./individual_configs/default.nix
./sync.nix ./sync.nix
] ++ base_imports ++ lib.optional (builtins.pathExists mod) mod; ] ++ base_imports ++ lib.optional (builtins.pathExists mod) mod;
}; };