feat: prevents gc and adds direnv

This commit is contained in:
Deepak Mallubhotla 2022-06-11 22:46:19 -05:00
parent 16aba6d8c2
commit 89b09025bb
2 changed files with 8 additions and 1 deletions

View File

@ -14,6 +14,9 @@
home.homeDirectory = "/home/deepak"; home.homeDirectory = "/home/deepak";
home.username = "deepak"; home.username = "deepak";
programs.direnv.enable = true;
programs.direnv.nix-direnv.enable = true;
programs.git = { programs.git = {
enable = true; enable = true;
userName = "Deepak Mallubhotla"; userName = "Deepak Mallubhotla";

View File

@ -15,7 +15,11 @@ in
nix = { nix = {
package = pkgs.nixFlakes; package = pkgs.nixFlakes;
extraOptions = "experimental-features = nix-command flakes"; extraOptions = ''
experimental-features = nix-command flakes
keep-outputs = true
keep-derivations = true
'';
}; };
# Use the systemd-boot EFI boot loader. # Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;