mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-11-09 18:47:02 +00:00
cube: move persistance
This commit is contained in:
parent
98abd4aa95
commit
f658ef1d1a
1 changed files with 9 additions and 11 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue