summaryrefslogtreecommitdiff
path: root/profiles
diff options
context:
space:
mode:
authorseth <[email protected]>2023-04-10 22:19:24 -0400
committerseth <[email protected]>2023-04-10 22:19:24 -0400
commitc08fb1e86f69a09e754b070ab60442dde168455b (patch)
tree5268037fbb6aec42543bec3dea61fca4a202940e /profiles
parent73d94b4cc02af45ee8c651de24099d80a5f1cb13 (diff)
add cachix + make nixpath follow flake
Diffstat (limited to 'profiles')
-rw-r--r--profiles/base/default.nix11
1 files changed, 10 insertions, 1 deletions
diff --git a/profiles/base/default.nix b/profiles/base/default.nix
index 1b84806..3d41319 100644
--- a/profiles/base/default.nix
+++ b/profiles/base/default.nix
@@ -1,4 +1,6 @@
-{pkgs, ...}: {
+{pkgs, ...}: let
+ channelPath = "/etc/nix/channels/nixpkgs";
+in {
imports = [
./documentation.nix
./packages.nix
@@ -22,5 +24,12 @@
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
];
};
+ nixPath = [
+ "nixpkgs=${channelPath}"
+ ];
};
+
+ systemd.tmpfiles.rules = [
+ "L+ ${channelPath} - - - - ${pkgs.path}"
+ ];
}