summaryrefslogtreecommitdiff
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
parent73d94b4cc02af45ee8c651de24099d80a5f1cb13 (diff)
add cachix + make nixpath follow flake
-rw-r--r--profiles/base/default.nix11
-rw-r--r--users/seth/home.nix5
-rw-r--r--users/seth/programs/default.nix1
3 files changed, 12 insertions, 5 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}"
+ ];
}
diff --git a/users/seth/home.nix b/users/seth/home.nix
index e6b4a1b..239782e 100644
--- a/users/seth/home.nix
+++ b/users/seth/home.nix
@@ -8,10 +8,7 @@
./shell
];
- nix = {
- package = lib.mkDefault pkgs.nixFlakes;
- settings.warn-dirty = false;
- };
+ nix.package = lib.mkDefault pkgs.nixFlakes;
xdg = {
enable = true;
configFile."nixpkgs/config.nix".text = ''
diff --git a/users/seth/programs/default.nix b/users/seth/programs/default.nix
index f179e17..191a9d9 100644
--- a/users/seth/programs/default.nix
+++ b/users/seth/programs/default.nix
@@ -7,6 +7,7 @@
home.packages = with pkgs; [
btop
+ cachix
cargo
llvmPackages_15.clang
fd