diff options
author | Mark Nipper <nipsy@bitgnome.net> | 2024-11-11 19:05:02 -0800 |
---|---|---|
committer | Mark Nipper <nipsy@bitgnome.net> | 2024-11-11 19:05:02 -0800 |
commit | cb3885e72abaa985e0e1fd95f6e57382c7c343e7 (patch) | |
tree | 04fe914816b35de2a2e6a9d7eef2b1e296490492 /hosts/uranus/disks.nix | |
parent | 2f0664317ee6b6dd9bd05844582346b0b6fec1b8 (diff) | |
download | nix-cb3885e72abaa985e0e1fd95f6e57382c7c343e7.tar nix-cb3885e72abaa985e0e1fd95f6e57382c7c343e7.tar.gz nix-cb3885e72abaa985e0e1fd95f6e57382c7c343e7.tar.bz2 nix-cb3885e72abaa985e0e1fd95f6e57382c7c343e7.tar.lz nix-cb3885e72abaa985e0e1fd95f6e57382c7c343e7.tar.xz nix-cb3885e72abaa985e0e1fd95f6e57382c7c343e7.tar.zst nix-cb3885e72abaa985e0e1fd95f6e57382c7c343e7.zip |
Add @uranus
Diffstat (limited to 'hosts/uranus/disks.nix')
-rw-r--r-- | hosts/uranus/disks.nix | 96 |
1 files changed, 96 insertions, 0 deletions
diff --git a/hosts/uranus/disks.nix b/hosts/uranus/disks.nix new file mode 100644 index 0000000..52e8926 --- /dev/null +++ b/hosts/uranus/disks.nix @@ -0,0 +1,96 @@ +{ + 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 swap" ]; + }; + }; + 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"; + }; + }; + }; + }; + }; +} |