30 lines
623 B
Nix
30 lines
623 B
Nix
{ lib, ... }:
|
|
{
|
|
environment.etc."NetworkManager/system-connections" = {
|
|
source = "/persist/etc/NetworkManager/system-connections/";
|
|
};
|
|
|
|
systemd.tmpfiles.rules = [
|
|
"L /var/lib/bluetooth - - - - /persist/var/lib/bluetooth"
|
|
];
|
|
|
|
services.openssh = {
|
|
enable = true;
|
|
hostKeys = [
|
|
{
|
|
path = "/persist/etc/ssh/ssh_host_ed25519_key";
|
|
type = "ed25519";
|
|
}
|
|
{
|
|
path = "/persist/etc/ssh/ssh_host_rsa_key";
|
|
type = "rsa";
|
|
bits = 4096;
|
|
}
|
|
];
|
|
};
|
|
|
|
boot.initrd.postDeviceCommands = lib.mkAfter ''
|
|
zfs rollback -r rpool/local/root@blank
|
|
'';
|
|
}
|