summaryrefslogtreecommitdiff
path: root/node/backup.jras.nl/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'node/backup.jras.nl/default.nix')
-rw-r--r--node/backup.jras.nl/default.nix59
1 files changed, 0 insertions, 59 deletions
diff --git a/node/backup.jras.nl/default.nix b/node/backup.jras.nl/default.nix
deleted file mode 100644
index 2857536..0000000
--- a/node/backup.jras.nl/default.nix
+++ /dev/null
@@ -1,59 +0,0 @@
-{ modulesPath, lib, ... }:
-{
- imports = [
- (modulesPath + "/profiles/qemu-guest.nix")
- ./disk-config.nix
- ];
-
- system.stateVersion = "24.11";
-
- home-manager.users.jras = { home.stateVersion = "24.11"; };
-
- boot.loader.grub = {
- efiSupport = true;
- efiInstallAsRemovable = true;
- };
-
- time.timeZone = "Europe/Amsterdam";
-
- networking.domain = "jras.nl";
- networking.hostName = "backup";
- networking.hostId = "0ee12836";
-
- 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;
- }
- ];
- };
-
- users.users.transfer = {
- openssh.authorizedKeys.keyFiles = [ ../../public/syncoid-key.pub ];
- createHome = true;
- home = "/persist/home/transfer";
- isSystemUser = true;
- useDefaultShell = true;
- group = "users";
- };
-
- services.openssh.settings.AllowUsers = [ "transfer" ];
- services.sanoid.enable = true;
- services.sanoid.datasets = {
- "backup" = {
- autoprune = true;
- autosnap = false;
- hourly = 72;
- daily = 7;
- monthly = 1;
- yearly = 1;
- };
- };
-}