nixos-configs/machines/atlas/configuration.nix

23 lines
620 B
Nix
Raw Normal View History

2024-12-01 13:33:24 +00:00
{config, ...}: {
config = {
facter.reportPath = ./facter.json;
2024-12-01 14:05:01 +00:00
# TODO: should set this automatically
2024-12-01 13:33:24 +00:00
networking.hostName = "atlas";
system.stateVersion = "23.05";
users.users.root.openssh.authorizedKeys.keys = config.pim.ssh.keys.pim ++ config.pim.ssh.keys.niels;
2024-12-01 14:05:01 +00:00
# TODO: set this as a default?
2024-12-01 13:33:24 +00:00
sops.age.keyFile = "/root/.config/sops/age/keys.txt";
deployment = {
targetHost = "atlas";
targetUser = "root";
2024-12-01 14:05:01 +00:00
tags = ["server" "kubernetes"];
2024-12-01 13:33:24 +00:00
};
pim = {
sops-nix.usersWithSopsKeys = ["root"];
2024-12-01 14:05:01 +00:00
k3s.serverAddr = "https://jefke.dmz:6443";
2024-12-01 13:33:24 +00:00
};
};
}