From f658ef1d1a6cda0b1d4f32b1e0deb91712062867 Mon Sep 17 00:00:00 2001 From: Sean Buckley Date: Sun, 24 Jul 2022 21:49:19 -0400 Subject: [PATCH] cube: move persistance --- hosts/cube/default.nix | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/hosts/cube/default.nix b/hosts/cube/default.nix index 1092e8e..89104de 100644 --- a/hosts/cube/default.nix +++ b/hosts/cube/default.nix @@ -11,20 +11,18 @@ horizon.enable = true; }; - environment.etc = - lib.genAttrs - [ - "machine-id" - "ssh/ssh_host_ed25519_key" - "ssh/ssh_host_rsa_key" - ] - (name: { source = "/nix/persist/etc/${name}"; }); + environment.etc.machine-id.source = "/var/lib/nixos/machine-id"; - services.openssh.enable = true; + services.openssh = { + enable = true; + hostKeys = [ + { type = "ed25519"; path = "/var/lib/nixos/ssh_host_ed25519_key"; } + ]; + }; users.mutableUsers = false; - users.users.sean.passwordFile = "/nix/persist/shadow_sean"; - users.users.root.passwordFile = "/nix/persist/shadow_sean"; + users.users.sean.passwordFile = "/var/lib/nixos/shadow_sean"; + users.users.root.passwordFile = "/var/lib/nixos/shadow_sean"; boot = { loader.systemd-boot.enable = true;