abstracted importing hardware config

This commit is contained in:
2026-10-17 14:35:25 +01:00
parent 92d740dd01
commit c24c208211
4 changed files with 8 additions and 7 deletions

View File

@@ -3,9 +3,5 @@
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
git git
]; ];
imports = [
/etc/nixos/hardware-configuration.nix
];
}; };
} }

View File

@@ -4,8 +4,5 @@
fastfetch fastfetch
]; ];
imports = [
/etc/nixos/hardware-configuration.nix
];
}; };
} }

View File

@@ -4,6 +4,7 @@
user user
networking networking
bootloader bootloader
imports
]; ];
in { in {
imports = modules; imports = modules;

View File

@@ -0,0 +1,7 @@
{...}: {
flake.nixosModules.imports = {...}: {
imports = [
/etc/nixos/hardware-configuration.nix
];
};
}