diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 84bc9a9..f7c1bff 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -164,6 +164,12 @@ in "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICNkZ5Xr75thR/tEgsASzYAtaA/kbsv2PKI8ux9rgpTe roydumblauskas@gmail.com" ]; }; + + # Symlink the user directories that need to be persisted (ssh key/repository folder) + systemd.tmpfiles.rules = [ + "L /home/sysAdmin/.ssh/ - - - - /persist/home/sysAdmin/.ssh" + "L /home/sysAdmin/rp/ - - - - /persist/home/sysAdmin/rp" + ]; users.users.root = { hashedPassword = "$y$j9T$IjaP0KIfdpEvlLtOn.u0T/$0MJDaFEdSu6zSJ04CF1dtorD6IVgbN3vmDiiwGwwqr5"; diff --git a/nixos/flake.nix b/nixos/flake.nix index bc49a1b..f81932c 100644 --- a/nixos/flake.nix +++ b/nixos/flake.nix @@ -17,6 +17,10 @@ url = "github:Mic92/sops-nix"; inputs.nixpkgs.follows = "nixpkgs"; }; + # IDK if this is right, might need to import each service, hope not + services = { + url = "./services/"; + }; }; outputs = { self, nixpkgs, nixvim, home-manager, disko, sops-nix, quasiSecrets }@inputs: