31 lines
771 B
Nix
31 lines
771 B
Nix
|
{ lib, config, ... }:
|
||
|
{
|
||
|
systemd.tmpfiles.rules = [
|
||
|
"L /var/lib/bluetooth - - - - /persist/var/lib/bluetooth"
|
||
|
"d /persist/var/lib/bluetooth 0500 root root"
|
||
|
|
||
|
"L /var/lib/docker - - - - /persist/var/lib/docker"
|
||
|
"d /persist/var/lib/docker 0510 root root"
|
||
|
|
||
|
"L /etc/NetworkManager/system-connections - - - - /persist/etc/NetworkManager/system-connections"
|
||
|
"d /persist/etc/NetworkManager/system-connections 0700 root root"
|
||
|
|
||
|
"d /persist/etc/ssh 0400 root root"
|
||
|
];
|
||
|
|
||
|
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;
|
||
|
}
|
||
|
];
|
||
|
};
|
||
|
}
|