Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
1 files changed, 6 insertions, 1 deletions
-rw-r--r--autoconfig.nix7
diff --git a/autoconfig.nix b/autoconfig.nix
index fa2caaa..0851514 100644
--- a/autoconfig.nix
+++ b/autoconfig.nix
@@ -32,6 +32,11 @@ in {
nixpkgs.legacyPackages.${sysidentity.arch}.callPackage ./packages/${name} { })
(lib.filterAttrs (_: type: type == "directory") (builtins.readDir ./packages));
+ package-overlays =
+ lib.mapAttrsToList
+ (name: _: (import ./overlays/${name}))
+ (builtins.readDir ./overlays);
+
in
lib.nixosSystem {
system = sysidentity.arch;
@@ -40,7 +45,7 @@ in {
./configuration.nix
({ ... }: {
networking.hostName = sysidentity.name;
- nixpkgs.overlays = [ (_: _: inputs-overlays) (_: _: custom-packages-overlays) ];
+ nixpkgs.overlays = [ (_: _: inputs-overlays) (_: _: custom-packages-overlays) ] ++ package-overlays;
})
]
++ (if lib.pathIsRegularFile ./machines/${dir}/configuration.nix