enable keeping deps for offline building
This commit is contained in:
parent
e07fc18924
commit
104ac1fc05
|
@ -12,7 +12,7 @@ in {
|
||||||
[ # Include the results of the hardware scan.
|
[ # Include the results of the hardware scan.
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
./packages.nix
|
./packages.nix
|
||||||
../../home/spiollinux/src/nixos-hardware/lenovo/thinkpad/t440s
|
/home/spiollinux/src/nixos-hardware/lenovo/thinkpad/t440s
|
||||||
];
|
];
|
||||||
|
|
||||||
# encrypted partitions
|
# encrypted partitions
|
||||||
|
@ -39,7 +39,6 @@ in {
|
||||||
SATA_LINKPWR_ON_AC=max_performance
|
SATA_LINKPWR_ON_AC=max_performance
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
#powerManagement.powertop.enable = 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;
|
||||||
|
@ -132,6 +131,11 @@ in {
|
||||||
|
|
||||||
# fix nix-env memory issues
|
# fix nix-env memory issues
|
||||||
boot.kernel.sysctl."vm.overcommit_memory" = "1";
|
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
|
# This value determines the NixOS release with which your system is to be
|
||||||
# compatible, in order to avoid breaking some software such as database
|
# compatible, in order to avoid breaking some software such as database
|
||||||
|
|
Loading…
Reference in a new issue