From 2ad12ab72944a3ac00098d0c42f5eaffffe90819 Mon Sep 17 00:00:00 2001 From: Hunter Date: Thu, 4 Dec 2025 11:41:07 -0500 Subject: [PATCH] fix: Change default swap size settings --- hosts/default.nix | 2 +- hosts/nix-desktop.nix | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/hosts/default.nix b/hosts/default.nix index dc03b3b..4b6be80 100644 --- a/hosts/default.nix +++ b/hosts/default.nix @@ -39,7 +39,7 @@ let swap = { name = "swap"; label = "swap"; - size = "34G"; + size = lib.mkDefault "34G"; content = { type = "swap"; }; }; diff --git a/hosts/nix-desktop.nix b/hosts/nix-desktop.nix index ddc99b6..ecf4227 100644 --- a/hosts/nix-desktop.nix +++ b/hosts/nix-desktop.nix @@ -1,5 +1,4 @@ { config, lib, modulesPath, ... }: - { imports = [ (modulesPath + "/installer/scan/not-detected.nix") @@ -10,14 +9,15 @@ boot.kernelModules = [ "kvm-intel" ]; boot.extraModulePackages = [ ]; boot.kernelParams = [ - "quiet" - "splash" - "boot.shell_on_fail" - "udev.log_priority=3" - "rd.systemd.show_status=auto" - ]; + "quiet" + "splash" + "boot.shell_on_fail" + "udev.log_priority=3" + "rd.systemd.show_status=auto" + ]; - disko.devices.disk.main.content.partitions.swap.size = lib.mkOverride "16G"; + disko.devices.disk.main.content.partitions.swap.size = "16G"; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; }