From 210ec2ded46759782fc66fd36a3e3145dcb783d9 Mon Sep 17 00:00:00 2001 From: Jasper Ras Date: Tue, 25 Mar 2025 14:06:59 +0100 Subject: backup.jras.nl --- modules/backup/default.nix | 33 --------------------------- modules/backup/disk-config.nix | 52 ------------------------------------------ 2 files changed, 85 deletions(-) delete mode 100644 modules/backup/default.nix delete mode 100644 modules/backup/disk-config.nix (limited to 'modules') diff --git a/modules/backup/default.nix b/modules/backup/default.nix deleted file mode 100644 index df34549..0000000 --- a/modules/backup/default.nix +++ /dev/null @@ -1,33 +0,0 @@ -{ lib, ... }: -{ - imports = [ - ./disk-config.nix - ../core - ]; - - # MEH - networking.hostId = "78bc192c"; - - system.stateVersion = "24.11"; - home-manager.users.jras = { home.stateVersion = "24.11"; }; - - boot.loader.systemd-boot.enable = true; - boot.loader.efi.canTouchEfiVariables = true; - - time.timeZone = "Europe/Amsterdam"; - - services.openssh = { - openFirewall = lib.mkForce true; - hostKeys = [ - { - path = "/persist/etc/ssh/ssh_host_ed25519_key"; - type = "ed25519"; - } - { - path = "/persist/etc/ssh/ssh_host_rsa_key"; - type = "rsa"; - bits = 4096; - } - ]; - }; -} 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"; - }; - }; - }; - }; - }; -} -- cgit v1.2.3