Fix bugs related to mismatched / missing nix

This commit is contained in:
2022-06-12 23:21:57 +01:00
parent 543c5fd968
commit 25dd48b795
3 changed files with 9 additions and 3 deletions

View File

@@ -239,6 +239,12 @@ in
packages = with pkgs; [
pkgs'.mine.nix
];
# Without this, we are at the mercy of whatever version of nix is in $PATH...
# TODO: Is this the right thing to do?
extraActivationPath = [
config.nix.package
];
};
})
(mkIf pkgs.stdenv.isLinux (mkMerge [
@@ -272,7 +278,7 @@ in
# No targets.genericLinux equivalent apparently
sessionVariablesExtra =
''
. "${pkgs.nix}/etc/profile.d/nix.sh"
. "${config.nix.package}/etc/profile.d/nix.sh"
'';
packages = with pkgs; [
cacert