summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2023-01-24 13:55:51 +0100
committerAlex Auvolat <alex@adnab.me>2023-01-24 13:55:51 +0100
commit3aee3f3005338c863e45bc54e66485355ea9300e (patch)
tree9c18e50a26106a7bb8cc14f7622898685eb48cae
parentfbb5187da68232fa8871609e0eb0fbd3e4a3281c (diff)
downloaduser-config-3aee3f3005338c863e45bc54e66485355ea9300e.tar.gz
user-config-3aee3f3005338c863e45bc54e66485355ea9300e.zip
enable nix-direnv
-rw-r--r--nixos/common.nix4
-rw-r--r--nixpkgs/common.nix1
2 files changed, 5 insertions, 0 deletions
diff --git a/nixos/common.nix b/nixos/common.nix
index 662116e..db6bf88 100644
--- a/nixos/common.nix
+++ b/nixos/common.nix
@@ -70,6 +70,10 @@ in
nix.settings.experimental-features = [ "nix-command" "flakes" ];
nix.settings.substituters = [ "https://nix.web.deuxfleurs.fr" ];
nix.settings.trusted-public-keys = [ "nix.web.deuxfleurs.fr:eTGL6kvaQn6cDR/F9lDYUIP9nCVR/kkshYfLDJf1yKs=" ];
+ nix.extraOptions = ''
+ keep-outputs = true
+ keep-derivations = true
+ '';
environment.systemPackages = with pkgs; [
home-manager
diff --git a/nixpkgs/common.nix b/nixpkgs/common.nix
index ec0ff5b..1cfd322 100644
--- a/nixpkgs/common.nix
+++ b/nixpkgs/common.nix
@@ -3,6 +3,7 @@
programs.direnv = {
enable = true;
+ nix-direnv.enable = true;
enableBashIntegration = true;
};