summaryrefslogtreecommitdiff
path: root/system-profiles
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2023-03-21 15:46:26 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2023-03-21 15:46:26 +0100
commit47f8d03ecb9efe39045630a1ebdcbc1c5a8f424e (patch)
tree65a81ec4977960d222b0477a25ff3c20836f7780 /system-profiles
parent2b14d6d4f414b5692fa29685934096536e0a7e19 (diff)
downloadnixos-47f8d03ecb9efe39045630a1ebdcbc1c5a8f424e.tar
nixos-47f8d03ecb9efe39045630a1ebdcbc1c5a8f424e.tar.gz
nixos-47f8d03ecb9efe39045630a1ebdcbc1c5a8f424e.tar.bz2
nixos-47f8d03ecb9efe39045630a1ebdcbc1c5a8f424e.tar.xz
nixos-47f8d03ecb9efe39045630a1ebdcbc1c5a8f424e.zip
funky NIX_PATH
Diffstat (limited to 'system-profiles')
-rw-r--r--system-profiles/core/default.nix (renamed from system-profiles/core.nix)5
-rw-r--r--system-profiles/core/nixpkgs.nix6
2 files changed, 8 insertions, 3 deletions
diff --git a/system-profiles/core.nix b/system-profiles/core/default.nix
index f6d5a21e..1368b54f 100644
--- a/system-profiles/core.nix
+++ b/system-profiles/core/default.nix
@@ -8,7 +8,7 @@ in {
8 [ sops-nix.nixosModules.sops 8 [ sops-nix.nixosModules.sops
9 home-manager.nixosModules.home-manager 9 home-manager.nixosModules.home-manager
10 ]; 10 ];
11 11
12 options = { 12 options = {
13 # See mkSystemProfile in ../flake.nix 13 # See mkSystemProfile in ../flake.nix
14 system.profiles = lib.mkOption { 14 system.profiles = lib.mkOption {
@@ -54,8 +54,7 @@ in {
54 experimental-features = nix-command flakes 54 experimental-features = nix-command flakes
55 ''; 55 '';
56 nixPath = [ 56 nixPath = [
57 "nixpkgs=/run/nixpkgs" 57 "nixpkgs=${./nixpkgs.nix}"
58 # "nixpkgs-overlays=/run/nixpkgs-overlays.nix"
59 ]; 58 ];
60 registry = 59 registry =
61 let override = { self = "nixos"; }; 60 let override = { self = "nixos"; };
diff --git a/system-profiles/core/nixpkgs.nix b/system-profiles/core/nixpkgs.nix
new file mode 100644
index 00000000..43bdae4d
--- /dev/null
+++ b/system-profiles/core/nixpkgs.nix
@@ -0,0 +1,6 @@
1args@{
2 overlays ? import /run/nixpkgs-overlays.nix,
3 ...
4}:
5
6import /run/nixpkgs (args // { inherit overlays; })