Move some options into base.nix

This commit is contained in:
Vili Sinervä 2024-09-06 10:33:39 +03:00
parent 442b72de55
commit 2ad217fd84
No known key found for this signature in database
GPG key ID: DF8FEAF54EFAC996
9 changed files with 8 additions and 32 deletions

View file

@ -61,12 +61,5 @@
resumeDevice = "/dev/mapper/nixos";
kernelParams = [ "resume_offset=39292928" ];
loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
};
services.logind.lidSwitch = if config.boot.resumeDevice != "" then "hibernate" else "suspend";
}