diff options
| Commit | 2dfa6f1eb76a54c277ca842e8d6d660268ce6949 (patch) | |
|---|---|---|
| Author | 2023-12-16 12:50:45 +0200 | |
| Committer | 2023-12-16 12:50:45 +0200 | |
| Files | d2db4636b25aa014a920f2a5c258617c35e85eab /autoconfig.nix | |
| nix-2dfa6f1eb76a54c277ca842e8d6d660268ce6949.tar nix-2dfa6f1eb76a54c277ca842e8d6d660268ce6949.tar.gz nix-2dfa6f1eb76a54c277ca842e8d6d660268ce6949.zip | ||
| Parent | c8236039fa2e5635290da25f176d917d5dee768e (diff) | |
[flake,autoconfig] Reworked how package inputs are handled
1 files changed, 13 insertions, 2 deletions
| -rw-r--r-- | autoconfig.nix | 15 |
diff --git a/autoconfig.nix b/autoconfig.nix index 95ffcc1..ee8b108 100644 --- a/autoconfig.nix +++ b/autoconfig.nix @@ -16,14 +16,25 @@ in { (name: _: (lib.hasInfix "_" name) -> (lib.hasPrefix (sysidentity.type + "_") name)) (import ./packages)); + + inputs-overlays = + lib.mapAttrs + (_: nixpkgs: + nixpkgs.legacyPackages.${sysidentity.arch}) + (lib.filterAttrs + (name: _: + lib.hasPrefix "nixpkgs-" name) + inputs); in lib.nixosSystem { system = sysidentity.arch; modules = [ ./machines/${dir}/hardware-configuration.nix ./configuration.nix - ({ ... }: { networking.hostName = sysidentity.name; }) - # ({ ... }: { environment.systemPackages = [ inputs.nixpkgs-firefox119.legacyPackages.x86_64-linux.firefox ]; }) + ({ ... }: { + networking.hostName = sysidentity.name; + nixpkgs.overlays = [ (_: _: inputs-overlays) ]; + }) ] ++ (if lib.pathIsRegularFile ./machines/${dir}/configuration.nix then [ ./machines/${dir}/configuration.nix ] |
