summaryrefslogtreecommitdiff
path: root/node/backup.jras.nl/disk-config.nix
diff options
context:
space:
mode:
authorJasper Ras <jaspert.ras@gmail.com>2025-03-29 10:54:31 +0100
committerJasper Ras <jaspert.ras@gmail.com>2025-03-29 10:54:31 +0100
commit5e3187e05d876f4e6b6fe20cc4c387daeffabe9c (patch)
treecd00bffddba0be1cf7087d6740879562564ca583 /node/backup.jras.nl/disk-config.nix
parent5956e07b4c8de365bf3d9ffc7db081cedcbd852a (diff)
rename node -> nodes
Diffstat (limited to 'node/backup.jras.nl/disk-config.nix')
-rw-r--r--node/backup.jras.nl/disk-config.nix109
1 files changed, 0 insertions, 109 deletions
diff --git a/node/backup.jras.nl/disk-config.nix b/node/backup.jras.nl/disk-config.nix
deleted file mode 100644
index d075422..0000000
--- a/node/backup.jras.nl/disk-config.nix
+++ /dev/null
@@ -1,109 +0,0 @@
-{
- disko.devices = {
- disk = {
- vda = {
- device = "/dev/vda";
- type = "disk";
- content = {
- type = "gpt";
- partitions = {
- boot = {
- name = "boot";
- size = "1M";
- type = "EF02";
- };
- esp = {
- name = "ESP";
- size = "500M";
- type = "EF00";
- content = {
- type = "filesystem";
- format = "vfat";
- mountpoint = "/boot";
- };
- };
- zfs = {
- size = "100%";
- content = {
- type = "zfs";
- pool = "local";
- };
- };
- };
- };
- };
-
- vdb = {
- device = "/dev/vdb";
- type = "disk";
- content = {
- type = "gpt";
- partitions = {
- zfs = {
- size = "100%";
- content = {
- type = "zfs";
- pool = "backup";
- };
- };
- };
- };
- };
-
- vdc = {
- device = "/dev/vdc";
- type = "disk";
- content = {
- type = "gpt";
- partitions = {
- zfs = {
- size = "100%";
- content = {
- type = "zfs";
- pool = "backup";
- };
- };
- };
- };
- };
- };
-
- zpool = {
- local = {
- type = "zpool";
-
- rootFsOptions = {
- compression = "zstd";
- };
-
- datasets = {
- root = {
- type = "zfs_fs";
- mountpoint = "/";
- postCreateHook = "zfs list -t snap -H -o name | grep -E '^local/root@blank$' || zfs snapshot local/root@blank";
- };
-
- nix = {
- type = "zfs_fs";
- mountpoint = "/nix";
- };
-
- persist = {
- type = "zfs_fs";
- mountpoint = "/persist";
- };
- };
- };
- };
-
- zpool = {
- backup = {
- type = "zpool";
-
- rootFsOptions = {
- compression = "zstd";
- };
- };
- };
- };
-}