enable keeping deps for offline building

This commit is contained in:
Trolli Schmittlauch 2018-10-13 19:56:31 +02:00
parent e07fc18924
commit 104ac1fc05

View file

@ -12,7 +12,7 @@ in {
[ # Include the results of the hardware scan.
./hardware-configuration.nix
./packages.nix
../../home/spiollinux/src/nixos-hardware/lenovo/thinkpad/t440s
/home/spiollinux/src/nixos-hardware/lenovo/thinkpad/t440s
];
# encrypted partitions
@ -39,7 +39,6 @@ in {
SATA_LINKPWR_ON_AC=max_performance
'';
};
#powerManagement.powertop.enable = true;
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
@ -130,8 +129,13 @@ in {
devices = [ { device = "/dev/sda"; } { device = "/dev/sdb"; } ];
};
# fix nix-env memory issues
boot.kernel.sysctl."vm.overcommit_memory" = "1";
# fix nix-env memory issues
boot.kernel.sysctl."vm.overcommit_memory" = "1";
# keep build-time deps around for offline-rebuilding
nix.extraOptions = ''
gc-keep-outputs = true
gc-keep-derivations = true
'';
# This value determines the NixOS release with which your system is to be
# compatible, in order to avoid breaking some software such as database