mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-07-15 00:52:39 +02:00
feat: modular i3's configurations
This commit is contained in:
@@ -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)
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user