From 1781bd41a2b606bd50a73d0330e7cd1a137bb03b Mon Sep 17 00:00:00 2001 From: server Date: Fri, 18 Oct 2024 19:38:57 +0200 Subject: [PATCH] tweaked luks setting for ssd, fixed /boot perissions --- hosts/supernova/hardware-configuration.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hosts/supernova/hardware-configuration.nix b/hosts/supernova/hardware-configuration.nix index 500f43d..0407252 100644 --- a/hosts/supernova/hardware-configuration.nix +++ b/hosts/supernova/hardware-configuration.nix @@ -15,6 +15,8 @@ boot.initrd.systemd.enable = true; boot.initrd.luks.devices."root".device = "/dev/disk/by-uuid/db8a5cf9-c54b-4e6a-b3f9-e6323eb962a6"; + # doubles SSD performance because r/w queue is unnecessary here + boot.initrd.luks.devices."root".bypassWorkqueues = true; fileSystems."/" = { device = "/dev/mapper/vg-root"; @@ -24,7 +26,7 @@ fileSystems."/boot" = { device = "/dev/disk/by-uuid/0374-0967"; fsType = "vfat"; - options = [ "fmask=0022" "dmask=0022" ]; + options = [ "fmask=0022" "dmask=0022" "umask=0077" ]; }; swapDevices =