refactor: dynamically manage most imports

This commit is contained in:
Leon Schwarzäugl 2025-02-26 00:32:05 +01:00
parent 6279713ab5
commit c8089780d7
Signed by: swarsel
GPG key ID: 26A54C31F2A4FD84
17 changed files with 171 additions and 225 deletions

View file

@ -1,12 +1,10 @@
{ self, inputs, outputs, ... }:
{ self, inputs, ... }:
let
profilesPath = "${self}/profiles";
in
{
imports = [
inputs.sops-nix.nixosModules.sops
./hardware-configuration.nix
"${profilesPath}/nixos/optional/autologin.nix"
@ -16,10 +14,9 @@ in
{
home-manager.users.swarsel.imports = [
"${profilesPath}/home/server"
] ++ (builtins.attrValues outputs.homeManagerModules);
];
}
] ++ (builtins.attrValues outputs.nixosModules) ++ (builtins.attrValues outputs.homeManagerModules);
];
boot = {
loader.systemd-boot.enable = true;