35 lines
745 B
Nix
35 lines
745 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib; {
|
|
config = {
|
|
environment.etc = {
|
|
nixos.source = "/state/nixos";
|
|
adjtime.source = "/state/etc/adjtime";
|
|
NIXOS.source = "/state/etc/NIXOS";
|
|
machine-id.source = "/state/etc/machine-id";
|
|
};
|
|
|
|
system.stateVersion = "20.09";
|
|
|
|
boot.initrd.postDeviceCommands = lib.mkAfter ''
|
|
${pkgs.zfs}/bin/zfs rollback -r zroot/transient/root@blank
|
|
'';
|
|
|
|
services = {
|
|
openssh = {
|
|
hostKeys = [
|
|
{
|
|
path = "/state/ssh/ssh_host_ed25519_key";
|
|
type = "ed25519";
|
|
}
|
|
{
|
|
path = "/state/ssh/ssh_host_rsa_key";
|
|
type = "rsa";
|
|
bits = 4096;
|
|
}
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|