Files
nixos/hosts/fs-01/default.nix

55 lines
1.1 KiB
Nix

{
config,
lib,
pkgs,
pkgsUnstable,
inputs,
...
}:
{
network.routingType = "dynamic";
network.hardwareAddress = "BC:24:11:38:1C:54";
network.staticAddresses = [
"/24"
"/64"
];
qemu.enable = true;
spice.enable = true;
syncthingserver.enable = true;
services.borgmatic = {
enable = true;
enableConfigCheck = true;
configurations.local = {
source_directories = [ "/mnt/data/syncthing" ];
repositories = [
{
label = "local";
path = "";
}
];
encryption_passphrase = "";
keep_daily = 7;
keep_weekly = 4;
keep_monthly = 12;
keep_yearly = 3;
unknown_unencrypted_repo_access_is_ok = false;
healthchecks = {
ping_url = "";
};
};
};
base.userSSHKeys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEXuLe99meMiylrJQKz8/WqgHQWA8aJ/IZL+1SAVs8n2 etorres@xenon"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPWS4JI7h2B89m8bFT4CUzNmWViVy74CLDQXdhgxVnBk etorres@radon"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPYYgxTbQTKrsR9DD0py/7j4xl3IoBSCzmRjRHuBjSGT etorres@erics-mac"
];
}