From c08fb1e86f69a09e754b070ab60442dde168455b Mon Sep 17 00:00:00 2001 From: seth Date: Mon, 10 Apr 2023 22:19:24 -0400 Subject: add cachix + make nixpath follow flake --- profiles/base/default.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'profiles') 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}" + ]; } -- cgit v1.2.3