Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commit17672a499e1480c01572b3aa528e31e872ef4121 (patch)
Author
 Syndamia <kamen@syndamia.com>
2023-12-19 14:55:29 +0200
Committer
 Syndamia <kamen@syndamia.com>
2023-12-19 14:55:29 +0200
Files1210ba8cd9585a5e8beb09badff59b38e95e799a
nix-17672a499e1480c01572b3aa528e31e872ef4121.tar
nix-17672a499e1480c01572b3aa528e31e872ef4121.tar.gz
nix-17672a499e1480c01572b3aa528e31e872ef4121.zip
Parentcb22c3256a3948e81de4a30839adc1e774f7e85d (diff)
[autoconfig] Added support for standalone overlays
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