diff --git a/hosts/rainbow.nix b/hosts/rainbow.nix index c5f3ab5..0c15174 100644 --- a/hosts/rainbow.nix +++ b/hosts/rainbow.nix @@ -1,9 +1,9 @@ # Do not modify this file! It was generated by ‘nixos-generate-config’ # and may be overwritten by future invocations. Please make changes # to /etc/nixos/configuration.nix instead. -{ config, lib, pkgs, modulesPath, ... }: - -{ +{ config, lib, pkgs, modulesPath, ... }: let + btrfs_options = [ "compress=zstd:3" "noatime" ]; +in { imports = [ (modulesPath + "/installer/scan/not-detected.nix") ]; @@ -16,7 +16,7 @@ fileSystems."/" = { device = "/dev/disk/by-uuid/a242e1fd-6848-4504-909f-ab8b61f97c8e"; fsType = "btrfs"; - options = [ "subvol=@nixos" ]; + options = [ "subvol=@nixos" ] ++ btrfs_options; }; boot.initrd.luks.devices."main".device = "/dev/disk/by-uuid/9b24d79f-e018-4d70-84a9-5a1b49a6c610"; @@ -24,7 +24,7 @@ fileSystems."/home" = { device = "/dev/disk/by-uuid/a242e1fd-6848-4504-909f-ab8b61f97c8e"; fsType = "btrfs"; - options = [ "subvol=@home" ]; + options = [ "subvol=@home" ] ++ btrfs_options; }; fileSystems."/boot/efi" =