From 894dba1d787c8d4d3afe054c4182c10b610220b6 Mon Sep 17 00:00:00 2001 From: Craige McWhirter Date: Mon, 14 Oct 2024 19:33:10 +1000 Subject: [PATCH] chore(nix): move configurationLimit to desktop role --- hosts/sercanto/default.nix | 8 +------- modules/roles/desktop/default.nix | 4 ++++ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/hosts/sercanto/default.nix b/hosts/sercanto/default.nix index fa5117a..588c470 100644 --- a/hosts/sercanto/default.nix +++ b/hosts/sercanto/default.nix @@ -34,13 +34,7 @@ }; boot = { - loader = { - systemd-boot = { - enable = true; - configurationLimit = 5; - }; - efi.canTouchEfiVariables = true; - }; + loader.efi.canTouchEfiVariables = true; kernel.sysctl."net.ipv4.ip_forward" = "1"; extraModprobeConfig = "options kvm_intel nested=1"; }; diff --git a/modules/roles/desktop/default.nix b/modules/roles/desktop/default.nix index ea9e931..9067565 100644 --- a/modules/roles/desktop/default.nix +++ b/modules/roles/desktop/default.nix @@ -12,6 +12,10 @@ in { enable = mkEnableOption "to enable the desktop role."; }; config = mkIf (cfg.enable) { + boot.loader.systemd-boot = { + enable = true; + configurationLimit = 5; + }; environment.systemPackages = with pkgs; [ brave # Privacy-oriented browser chromium