From a52964ffec9325edbe87e9811e51a33b99cae34e Mon Sep 17 00:00:00 2001 From: Danilo Reyes Date: Mon, 25 Sep 2023 17:13:24 -0600 Subject: [PATCH] cleans up boot for windows 11 dual --- workstation/fstab.nix | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/workstation/fstab.nix b/workstation/fstab.nix index b22c8f4..9d56163 100644 --- a/workstation/fstab.nix +++ b/workstation/fstab.nix @@ -1,7 +1,7 @@ { config, pkgs, modulesPath, ... }: { imports = [ (modulesPath + "/installer/scan/not-detected.nix") ]; boot = { - #plymouth = { enable = true; }; + kernel.sysctl = { "vm.swappiness" = 80; }; loader = { efi = { canTouchEfiVariables = true; @@ -11,18 +11,16 @@ enable = true; device = "nodev"; efiSupport = true; + useOSProber = true; enableCryptodisk = true; }; }; initrd.luks.devices = { nvme = { - device = "/dev/disk/by-uuid/e9618e85-a631-4374-b2a4-22c376d6e41b"; preLVM = true; }; }; - kernelModules = [ "kvm-intel" ]; - kernel.sysctl = { "vm.swappiness" = 80; }; extraModulePackages = [ ]; initrd = { availableKernelModules = @@ -32,9 +30,10 @@ }; fileSystems = let - mount = disk: { - device = "server:/${disk}"; + mount = nfsDisk: { + device = "server:/${nfsDisk}"; fsType = "nfs"; + options = [ "x-systemd.automount" "noauto" ]; }; in { "/mnt/disk1" = mount "disk1" // { };