refactor: reorganized

This commit is contained in:
2025-01-26 07:45:20 +00:00
parent 458c829ca4
commit 9b8bf921fe
6 changed files with 14 additions and 18 deletions

View File

@@ -43,20 +43,17 @@
};
};
system = "x86_64-linux";
modules =
[
./hosts/${host.name}/configuration.nix
home-manager.nixosModules.home-manager
{
nix.settings.experimental-features = [
"nix-command"
"flakes"
];
}
]
++ (
if builtins.hasAttr "isWSL" host && host.isWSL then [ nixos-wsl.nixosModules.default ] else [ ]
);
modules = [
./hosts/${host.name}/configuration.nix
./modules/default.nix
home-manager.nixosModules.home-manager
{
nix.settings.experimental-features = [
"nix-command"
"flakes"
];
}
] ++ (if builtins.hasAttr "isWSL" host then [ nixos-wsl.nixosModules.default ] else [ ]);
};
}) hosts
);