diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2021-01-02 19:16:56 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2021-01-02 19:16:56 +0100 |
commit | cde47cb1a5492915fe812b738508aacf76d86251 (patch) | |
tree | a2d2e7d0e11558b89f8d2305c55f7dc6569fb656 /system-profiles/core.nix | |
parent | 171fdf56d4004b407c2f7f71422ade750282674e (diff) | |
download | nixos-cde47cb1a5492915fe812b738508aacf76d86251.tar nixos-cde47cb1a5492915fe812b738508aacf76d86251.tar.gz nixos-cde47cb1a5492915fe812b738508aacf76d86251.tar.bz2 nixos-cde47cb1a5492915fe812b738508aacf76d86251.tar.xz nixos-cde47cb1a5492915fe812b738508aacf76d86251.zip |
construct nixpkgs with overridable config
Diffstat (limited to 'system-profiles/core.nix')
-rw-r--r-- | system-profiles/core.nix | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/system-profiles/core.nix b/system-profiles/core.nix index 5f2433bb..0ff3a9f4 100644 --- a/system-profiles/core.nix +++ b/system-profiles/core.nix | |||
@@ -36,7 +36,10 @@ in { | |||
36 | networking.hostName = hostName; | 36 | networking.hostName = hostName; |
37 | system.configurationRevision = lib.mkIf (flake ? rev) flake.rev; | 37 | system.configurationRevision = lib.mkIf (flake ? rev) flake.rev; |
38 | 38 | ||
39 | nixpkgs.pkgs = flake.legacyPackages.${config.nixpkgs.system}; | 39 | nixpkgs.pkgs = import flake.legacyPackages.${config.nixpkgs.system}.path { |
40 | inherit (config.nixpkgs) system config; | ||
41 | overlays = lib.attrValues flake.overlays; | ||
42 | }; | ||
40 | 43 | ||
41 | nix = { | 44 | nix = { |
42 | package = pkgs.nixUnstable; | 45 | package = pkgs.nixUnstable; |
@@ -68,5 +71,7 @@ in { | |||
68 | }; | 71 | }; |
69 | 72 | ||
70 | sops.gnupgHome = lib.mkIf hasSops "/root/.gnupg"; | 73 | sops.gnupgHome = lib.mkIf hasSops "/root/.gnupg"; |
74 | |||
75 | environment.systemPackages = [ pkgs.git ] ++ lib.optional hasSops pkgs.gnupg; | ||
71 | }; | 76 | }; |
72 | } | 77 | } |