diff options
author | Azat Bahawi <azat@bahawi.net> | 2023-02-02 00:49:21 +0300 |
---|---|---|
committer | Azat Bahawi <azat@bahawi.net> | 2023-02-02 00:49:21 +0300 |
commit | 89399796d0b91e7904ce67de04bd2f60f0d93b5b (patch) | |
tree | 06d47b2ccc861fe8188cdb96910e651802ae06cc /nixosConfigurations | |
parent | 2023-01-30 (diff) |
2023-02-02
Diffstat (limited to '')
-rw-r--r-- | nixosConfigurations/eonwe/default.nix | 52 | ||||
-rw-r--r-- | nixosConfigurations/yavanna/default.nix | 4 |
2 files changed, 50 insertions, 6 deletions
diff --git a/nixosConfigurations/eonwe/default.nix b/nixosConfigurations/eonwe/default.nix index 8889120..19eb8b1 100644 --- a/nixosConfigurations/eonwe/default.nix +++ b/nixosConfigurations/eonwe/default.nix @@ -72,16 +72,60 @@ with lib; { initrd.kernelModules = ["nvme"]; }; + # Filesystem creation: + # ``` + # mkfs.vfat -F 32 -l nixos-boot /dev/nvmeXnYpZ + # + # zpool create + # -o ashift=12 + # -o autotrim=on + # -O acltype=posixacl + # -O xattr=sa + # -O compression=zstd + # -O atime=off + # -O relatime=off + # -O devices=off + # -O canmount=off + # -O mountpoint=none + # nixos + # /dev/nvmeXnYpZ + # + # zfs create + # nixos/root + # + # zfs create + # -o mountpoint=legacy + # -o relatime=on + # -o encryption=on + # -o keyformat=passphrase + # nixos/root/ark + # + # zfs create + # -o mountpoint=legacy + # nixos/root/nix + # ``` fileSystems = { "/boot" = { - device = "/dev/disk/by-uuid/FF1E-9CFD"; + device = "/dev/disk/by-uuid/1363-02E6"; fsType = "vfat"; }; "/" = { - device = "/dev/disk/by-uuid/20276c1b-7e46-430b-b741-2f4aeb76bc51"; - fsType = "xfs"; - options = ["noatime"]; + device = "none"; + fsType = "tmpfs"; + options = ["size=8G" "mode=755"]; + }; + + "/ark" = { + device = "nixos/root/ark"; + fsType = "zfs"; + neededForBoot = true; + }; + + "/nix" = { + device = "nixos/root/nix"; + fsType = "zfs"; + neededForBoot = true; }; }; diff --git a/nixosConfigurations/yavanna/default.nix b/nixosConfigurations/yavanna/default.nix index d347c61..3073caa 100644 --- a/nixosConfigurations/yavanna/default.nix +++ b/nixosConfigurations/yavanna/default.nix @@ -27,8 +27,8 @@ with lib; { # automatically (IIRC) generated `hardware-configuration.nix' as is. # # There's, however, no indication that any NVME drives are being used and, - # as the matter of fact, the VPS itself is KVM-shire, so... I'm still not - # going to risk it. + # as the matter of fact, the VPS itself is on KVM, so... I'm still not going + # to risk it, though. # # [1]: https://github.com/elitak/nixos-infect initrd.availableKernelModules = ["nvme"]; |