chore(nix): move configurationLimit to desktop role

This commit is contained in:
Serĉanto de Scio 2024-10-14 19:33:10 +10:00
parent 4ef0c78963
commit 894dba1d78
Signed by: sercanto
GPG key ID: A4122FF3971B6865
2 changed files with 5 additions and 7 deletions

View file

@ -34,13 +34,7 @@
}; };
boot = { boot = {
loader = { loader.efi.canTouchEfiVariables = true;
systemd-boot = {
enable = true;
configurationLimit = 5;
};
efi.canTouchEfiVariables = true;
};
kernel.sysctl."net.ipv4.ip_forward" = "1"; kernel.sysctl."net.ipv4.ip_forward" = "1";
extraModprobeConfig = "options kvm_intel nested=1"; extraModprobeConfig = "options kvm_intel nested=1";
}; };

View file

@ -12,6 +12,10 @@ in {
enable = mkEnableOption "to enable the desktop role."; enable = mkEnableOption "to enable the desktop role.";
}; };
config = mkIf (cfg.enable) { config = mkIf (cfg.enable) {
boot.loader.systemd-boot = {
enable = true;
configurationLimit = 5;
};
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
brave # Privacy-oriented browser brave # Privacy-oriented browser
chromium chromium