diff --git a/hosts/laptop/hardware-configuration.nix b/hosts/laptop/hardware-configuration.nix index f6c14e3..9a0521e 100644 --- a/hosts/laptop/hardware-configuration.nix +++ b/hosts/laptop/hardware-configuration.nix @@ -22,12 +22,6 @@ boot.kernelModules = [ "kvm-intel" ]; boot.extraModulePackages = [ ]; - fileSystems."/" = - { device = "/dev/mapper/root"; - fsType = "btrfs"; - options = [ "compress=zstd,space_cache=v2,ssd,noatime,subvol=@" ]; - }; - boot.initrd.luks = { fido2Support = true; devices."root" = { @@ -36,22 +30,28 @@ }; }; + fileSystems."/" = + { device = "/dev/mapper/root"; + fsType = "btrfs"; + options = [ "compress=zstd,space_cache=v2,ssd,noatime,subvol=@,discard=async" ]; + }; + fileSystems."/home" = { device = "/dev/mapper/root"; fsType = "btrfs"; - options = [ "compress=zstd,space_cache=v2,ssd,noatime,subvol=@home" ]; + options = [ "compress=zstd,space_cache=v2,ssd,noatime,subvol=@home,discard=async" ]; }; fileSystems."/opt" = { device = "/dev/mapper/root"; fsType = "btrfs"; - options = [ "compress=zstd,space_cache=v2,ssd,noatime,subvol=@opt" ]; + options = [ "compress=zstd,space_cache=v2,ssd,noatime,subvol=@opt,discard=async" ]; }; fileSystems."/srv" = { device = "/dev/mapper/root"; fsType = "btrfs"; - options = [ "compress=zstd,space_cache=v2,ssd,noatime,subvol=@srv" ]; + options = [ "compress=zstd,space_cache=v2,ssd,noatime,subvol=@srv,discard=async" ]; }; fileSystems."/boot" = @@ -65,6 +65,12 @@ options = [ "noauto,users,x-systemd.automount,x-systemd.device-timeout=10,soft,timeo=14,x-systemd.idle-timeout=1min,sec=sys,exec" ]; }; + fileSystems."/mnt/Nova" = + { device = "truenas:/mnt/Nova"; + fsType = "nfs"; + options = [ "noauto,users,x-systemd.automount,x-systemd.device-timeout=10,soft,timeo=14,x-systemd.idle-timeout=1min,sec=sys,exec" ]; + }; + swapDevices = [ ];