ark/hosts/wolumonde/default.nix

26 lines
631 B
Nix
Raw Normal View History

2022-07-30 05:03:10 +03:00
{inputs, ...}: {
2022-07-30 04:39:01 +03:00
imports = [
./hardware-configuration.nix
];
boot.cleanTmpDir = true;
zramSwap.enable = true;
services.openssh = {
enable = true;
passwordAuthentication = false;
};
users.users.root.openssh.authorizedKeys.keys = [
(builtins.readFile "${inputs.self}/secrets/ssh-key.pub")
];
2022-07-30 05:03:10 +03:00
_module.args.nixinate = {
host = builtins.readFile "${inputs.self}/secrets/wolumonde-ip";
sshUser = "root";
buildOn = "local"; # valid args are "local" or "remote"
substituteOnTarget = true; # if buildOn is "local" then it will substitute on the target, "-s"
hermetic = true;
};
}