From 99892fab5c44f0e72c21c50e23c8f9acc06af790 Mon Sep 17 00:00:00 2001 From: jopejoe1 Date: Sat, 20 Apr 2024 09:56:54 +0200 Subject: [PATCH] hetzner dont use impermance --- systems/hetzner/default.nix | 95 ++----------------------------------- 1 file changed, 3 insertions(+), 92 deletions(-) diff --git a/systems/hetzner/default.nix b/systems/hetzner/default.nix index cc54d55..83cd4d3 100644 --- a/systems/hetzner/default.nix +++ b/systems/hetzner/default.nix @@ -6,7 +6,6 @@ self.inputs.srvos.nixosModules.server self.inputs.srvos.nixosModules.hardware-hetzner-online-amd self.inputs.srvos.nixosModules.mixins-nginx - self.inputs.impermanence.nixosModules.impermanence ]; jopejoe1 = { @@ -37,90 +36,10 @@ services.openssh.ports = [ 22 ]; - users.mutableUsers = false; users.users.jopejoe1.hashedPassword = "$2b$05$Uk84TY/RHlH8DIigUlFYjeorjTlCMEY9wN2pAcw5BLaPoc7dKiSsC"; users.users.root.hashedPassword = "$2b$05$Uk84TY/RHlH8DIigUlFYjeorjTlCMEY9wN2pAcw5BLaPoc7dKiSsC"; - home-manager.users = { - jopejoe1 = { - imports = [ self.inputs.impermanence.nixosModules.home-manager.impermanence ]; - home.persistence."/nix/persistent/users/jopejoe1" = { - allowOther = false; - directories = [ - "Downloads" - "Music" - "Pictures" - "Documents" - "Videos" - ".gnupg" - ".ssh" - ".nixops" - ".local/share/keyrings" - ".local/share/direnv" - ]; - files = [ - ]; - }; - }; - root = { - imports = [ self.inputs.impermanence.nixosModules.home-manager.impermanence ]; - home.persistence."/nix/persistent/users/root" = { - allowOther = false; - directories = [ - "Downloads" - "Music" - "Pictures" - "Documents" - "Videos" - ".gnupg" - ".ssh" - ".nixops" - ".local/share/keyrings" - ".local/share/direnv" - ]; - files = [ - ]; - }; - }; - }; - - environment.persistence."/nix/persistent/system" = { - hideMounts = true; - directories = [ - "/var/log" - "/var/lib/bluetooth" - "/var/lib/nixos" - "/var/lib/systemd/coredump" - "/etc/NetworkManager/system-connections" - { directory = "/var/lib/colord"; user = "colord"; group = "colord"; mode = "u=rwx,g=rx,o="; } - ]; - files = [ - "/etc/machine-id" - { file = "/var/keys/secret_file"; parentDirectory = { mode = "u=rwx,g=,o="; }; } - { file = "/etc/nix/id_rsa"; parentDirectory = { mode = "u=rwx,g=,o="; }; } - ]; - }; - - fileSystems = { - "/nix" = { - neededForBoot = true; - }; - "/nix/persistent" = { - neededForBoot = true; - }; - }; - disko.devices = { - nodev = { - "/" = { - fsType = "tmpfs"; - mountOptions = [ - "defaults" - "size=25%" - "mode=755" - ]; - }; - }; disk = { vdb = { type = "disk"; @@ -173,17 +92,9 @@ primary = { size = "100%"; content = { - type = "btrfs"; - extraArgs = [ "-f" ]; - subvolumes = { - "/nix" = { - mountOptions = [ "compress=zstd" "noatime" ]; - mountpoint = "/nix"; - }; - "/nix/persistent" = { - mountpoint = "/nix/persistent"; - }; - }; + type = "filesystem"; + format = "ext4"; + mountpoint = "/"; }; }; };