feat: modular i3's configurations

This commit is contained in:
Ryan Yin
2023-12-24 22:49:13 +08:00
parent 3aaaeb49ca
commit 30881f356a
27 changed files with 20 additions and 20 deletions
+2 -9
View File
@@ -8,7 +8,7 @@ with lib; let
cfg = config.modules.desktop.i3;
in {
imports = [
./nvidia.nix
./options
];
options.modules.desktop.i3 = {
@@ -16,13 +16,6 @@ in {
};
config = mkIf cfg.enable (
mkMerge
(map
(path: import path args)
[
./i3.nix
./packages.nix
./x11-apps.nix
])
mkMerge (import ./values args)
);
}