disable auto optimise nix store for hypervisor

This commit is contained in:
Dmitriy Kholkin 2023-04-08 18:17:45 +03:00
parent b633e0d50f
commit edaf1bcc03
2 changed files with 4 additions and 2 deletions

View File

@ -133,6 +133,8 @@ in {
# networking.proxy.default = "http://127.0.0.1:3128"; # networking.proxy.default = "http://127.0.0.1:3128";
nix.optimise.automatic = false;
services.logind.lidSwitch = "lock"; services.logind.lidSwitch = "lock";
services.logind.lidSwitchDocked = "lock"; services.logind.lidSwitchDocked = "lock";
services.logind.lidSwitchExternalPower = "lock"; services.logind.lidSwitchExternalPower = "lock";
@ -155,7 +157,7 @@ in {
''; '';
home.packages = with pkgs; [ home.packages = with pkgs; [
bat podman-compose micro bottom nix-index-update bat podman-compose micro bottom nix-index-update
pwgen comma kitty pwgen comma kitty smartmontools
]; ];
xdg.mime.enable = false; xdg.mime.enable = false;
home.stateVersion = "22.11"; home.stateVersion = "22.11";

View File

@ -6,7 +6,7 @@ with config.deviceSpecific; {
registry.self.flake = inputs.self; registry.self.flake = inputs.self;
registry.nixpkgs.flake = inputs.nixpkgs; registry.nixpkgs.flake = inputs.nixpkgs;
optimise.automatic = true; optimise.automatic = lib.mkDefault true;
extraOptions = '' extraOptions = ''
builders-use-substitutes = true builders-use-substitutes = true