summaryrefslogtreecommitdiff
path: root/configuration/snorlax/disk-config.nix
diff options
context:
space:
mode:
Diffstat (limited to 'configuration/snorlax/disk-config.nix')
-rw-r--r--configuration/snorlax/disk-config.nix58
1 files changed, 0 insertions, 58 deletions
diff --git a/configuration/snorlax/disk-config.nix b/configuration/snorlax/disk-config.nix
deleted file mode 100644
index 9bac5f0..0000000
--- a/configuration/snorlax/disk-config.nix
+++ /dev/null
@@ -1,58 +0,0 @@
-{
- disko.devices = {
- disk = {
- sda = {
- device = "/dev/sda";
- type = "disk";
- content = {
- type = "gpt";
- partitions = {
- ESP = {
- type = "EF00";
- size = "64M";
- 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 = {
- git = {
- type = "zfs_fs";
- mountpoint = "/var/lib/git";
- options."com.sun:auto-snapshot" = "true";
- };
-
- samba = {
- type = "zfs_fs";
- mountpoint = "/srv/samba";
- options."com.sun:auto-snapshot" = "true";
- };
- };
- };
- };
- };
-}