diff options
author | Mark Nipper <nipsy@bitgnome.net> | 2024-11-08 15:03:47 -0800 |
---|---|---|
committer | Mark Nipper <nipsy@bitgnome.net> | 2024-11-08 15:03:47 -0800 |
commit | d918c00564b6043c65da8ffb704c243a7501dd05 (patch) | |
tree | ad488111ffee83ec40fe908d4dcf20172346270a /hosts/jupiter/disks.nix | |
parent | 9e5d37711c77d4921fbb573194ae474bf082df50 (diff) | |
download | nix-d918c00564b6043c65da8ffb704c243a7501dd05.tar nix-d918c00564b6043c65da8ffb704c243a7501dd05.tar.gz nix-d918c00564b6043c65da8ffb704c243a7501dd05.tar.bz2 nix-d918c00564b6043c65da8ffb704c243a7501dd05.tar.lz nix-d918c00564b6043c65da8ffb704c243a7501dd05.tar.xz nix-d918c00564b6043c65da8ffb704c243a7501dd05.tar.zst nix-d918c00564b6043c65da8ffb704c243a7501dd05.zip |
Add @jupiter
Diffstat (limited to 'hosts/jupiter/disks.nix')
-rw-r--r-- | hosts/jupiter/disks.nix | 95 |
1 files changed, 95 insertions, 0 deletions
diff --git a/hosts/jupiter/disks.nix b/hosts/jupiter/disks.nix new file mode 100644 index 0000000..e8474fa --- /dev/null +++ b/hosts/jupiter/disks.nix @@ -0,0 +1,95 @@ +{ + disko.devices = { + disk = { + nvme0n1 = { + type = "disk"; + device = "/dev/nvme0n1"; + content = { + type = "gpt"; + partitions = { + ESP = { + size = "1G"; + type = "EF00"; + content = { + type = "filesystem"; + format = "vfat"; + mountpoint = "/boot"; + mountOptions = [ "defaults" ]; + extraArgs = [ "-nboot" ]; + }; + }; + swap = { + size = "16G"; + type = "8200"; + content = { + type = "swap"; + extraArgs = [ "-L swap1" ]; + }; + }; + rpool = { + size = "100%"; + content = { + type = "zfs"; + pool = "rpool"; + }; + }; + }; + }; + }; + zpool = { + rpool = { + type = "zpool"; + rootFsOptions = { + acltype = "posixacl"; + canmount = "off"; + compression = "on"; + dnodesize = "auto"; + relatime = "on"; + xattr = "sa"; + }; + options = { + ashift = "12"; + autotrim = "on"; + }; + datasets = { + "local" = { + type = "zfs_fs"; + options.mountpoint = "none"; + }; + "local/root" = { + type = "zfs_fs"; + options.mountpoint = "legacy"; + mountpoint = "/"; + }; + "local/nix" = { + type = "zfs_fs"; + options = { + atime = "off"; + mountpoint = "legacy"; + }; + mountpoint = "/nix"; + }; + "user" = { + type = "zfs_fs"; + options.mountpoint = "none"; + }; + "user/home" = { + type = "zfs_fs"; + options.mountpoint = "legacy"; + mountpoint = "/home"; + }; + "user/home/root" = { + type = "zfs_fs"; + options.mountpoint = "legacy"; + mountpoint = "/root"; + }; + "user/home/nipsy" = { + type = "zfs_fs"; + options.mountpoint = "legacy"; + mountpoint = "/home/nipsy"; + }; + }; + }; + }; + }; +} |