summaryrefslogtreecommitdiff
path: root/modules/backup/disk-config.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/backup/disk-config.nix')
-rw-r--r--modules/backup/disk-config.nix52
1 files changed, 0 insertions, 52 deletions
diff --git a/modules/backup/disk-config.nix b/modules/backup/disk-config.nix
deleted file mode 100644
index 9244686..0000000
--- a/modules/backup/disk-config.nix
+++ /dev/null
@@ -1,52 +0,0 @@
-{
- disko.devices = {
- disk = {
- sda = {
- device = "/dev/vda";
- type = "disk";
- content = {
- type = "gpt";
- partitions = {
- ESP = {
- type = "EF00";
- size = "500M";
- content = {
- type = "filesystem";
- format = "vfat";
- mountpoint = "/boot";
- mountOptions = [ "umask=0077" ];
- };
- };
- zfs = {
- size = "100%";
- content = {
- type = "zfs";
- pool = "zroot";
- };
- };
- };
- };
- };
- };
-
- zpool = {
- zroot = {
- type = "zpool";
- rootFsOptions = {
- compression = "zstd";
- "com.sun:auto-snapshot" = "false";
- };
- mountpoint = "/";
- postCreateHook = "zfs list -t snap -H -o name | grep -E '^zroot@blank$' || zfs snapshot zroot@blank";
-
- datasets = {
- persist = {
- type = "zfs_fs";
- mountpoint = "/persist";
- options."com.sun:auto-snapshot" = "true";
- };
- };
- };
- };
- };
-}