mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +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;
|
horizon.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.etc =
|
environment.etc.machine-id.source = "/var/lib/nixos/machine-id";
|
||||||
lib.genAttrs
|
|
||||||
[
|
|
||||||
"machine-id"
|
|
||||||
"ssh/ssh_host_ed25519_key"
|
|
||||||
"ssh/ssh_host_rsa_key"
|
|
||||||
]
|
|
||||||
(name: { source = "/nix/persist/etc/${name}"; });
|
|
||||||
|
|
||||||
services.openssh.enable = true;
|
services.openssh = {
|
||||||
|
enable = true;
|
||||||
|
hostKeys = [
|
||||||
|
{ type = "ed25519"; path = "/var/lib/nixos/ssh_host_ed25519_key"; }
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
users.mutableUsers = false;
|
users.mutableUsers = false;
|
||||||
users.users.sean.passwordFile = "/nix/persist/shadow_sean";
|
users.users.sean.passwordFile = "/var/lib/nixos/shadow_sean";
|
||||||
users.users.root.passwordFile = "/nix/persist/shadow_sean";
|
users.users.root.passwordFile = "/var/lib/nixos/shadow_sean";
|
||||||
|
|
||||||
boot = {
|
boot = {
|
||||||
loader.systemd-boot.enable = true;
|
loader.systemd-boot.enable = true;
|
||||||
|
|
Loading…
Reference in a new issue