os/hosts/stroopwafel/persistence.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
679 B
Nix
Raw Normal View History

2024-01-27 23:40:41 +00:00
{ lib, ... }:
2024-01-27 22:53:36 +00:00
{
environment.etc."NetworkManager/system-connections" = {
source = "/persist/etc/NetworkManager/system-connections/";
};
systemd.tmpfiles.rules = [
"L /var/lib/bluetooth - - - - /persist/var/lib/bluetooth"
"L /var/lib/docker - - - - /persist/var/lib/docker"
2024-01-27 22:53:36 +00:00
];
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;
}
];
};
2024-01-27 23:40:41 +00:00
boot.initrd.postDeviceCommands = lib.mkAfter ''
zfs rollback -r rpool/local/root@blank
'';
2024-01-27 22:53:36 +00:00
}