2024-12-03 20:02:13 +01:00
|
|
|
{ self, ... }:
|
|
|
|
{
|
|
|
|
modulesPath,
|
|
|
|
pkgs,
|
|
|
|
config,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
(modulesPath + "/virtualisation/lxc-container.nix")
|
|
|
|
|
|
|
|
../../users/root
|
|
|
|
../../users/erwin
|
|
|
|
|
2024-12-20 11:19:26 +01:00
|
|
|
./backup.nix
|
2024-12-03 20:02:13 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
eboskma = {
|
|
|
|
users.erwin = {
|
|
|
|
enable = true;
|
|
|
|
server = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
nix-common = {
|
|
|
|
enable = true;
|
|
|
|
remote-builders = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
rust-motd.enable = true;
|
|
|
|
tailscale.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
boot = {
|
|
|
|
isContainer = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
time.timeZone = "Europe/Amsterdam";
|
|
|
|
|
|
|
|
system.configurationRevision = self.inputs.nixpkgs.lib.mkIf (self ? rev) self.rev;
|
|
|
|
|
|
|
|
networking = {
|
|
|
|
hostName = "bsky";
|
|
|
|
useDHCP = false;
|
|
|
|
useHostResolvConf = false;
|
|
|
|
networkmanager.enable = false;
|
|
|
|
useNetworkd = true;
|
|
|
|
nftables.enable = true;
|
|
|
|
firewall.trustedInterfaces = [ "tailscale0" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
systemd = {
|
|
|
|
services.logrotate-checkconf.enable = false;
|
|
|
|
|
|
|
|
network = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
wait-online.anyInterface = true;
|
|
|
|
|
|
|
|
networks = {
|
|
|
|
"40-eth0" = {
|
|
|
|
matchConfig = {
|
|
|
|
Name = "eth0";
|
|
|
|
};
|
|
|
|
|
|
|
|
networkConfig = {
|
|
|
|
Address = "10.0.0.213/24";
|
|
|
|
Gateway = "10.0.0.1";
|
|
|
|
DNS = "10.0.0.206";
|
|
|
|
DHCP = "no";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
services = {
|
|
|
|
pds = {
|
|
|
|
enable = true;
|
|
|
|
environmentFiles = [
|
|
|
|
config.sops.secrets.pds-env.path
|
|
|
|
];
|
|
|
|
settings = {
|
|
|
|
PDS_HOSTNAME = "boskma.frl";
|
|
|
|
PDS_ADMIN_EMAIL = "erwin@datarift.nl";
|
|
|
|
PDS_EMAIL_FROM_ADDRESS = "admin@boskma.frl";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
security = {
|
|
|
|
sudo-rs = {
|
|
|
|
enable = true;
|
|
|
|
execWheelOnly = true;
|
|
|
|
wheelNeedsPassword = false;
|
|
|
|
};
|
|
|
|
sudo.enable = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
sops.defaultSopsFile = ./secrets.yaml;
|
|
|
|
sops.secrets = {
|
|
|
|
pds-env = { };
|
2024-12-20 11:19:26 +01:00
|
|
|
bsky-backup-ssh-key = { };
|
|
|
|
bsky-backup-pass = { };
|
2024-12-03 20:02:13 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
system.stateVersion = "25.05";
|
|
|
|
}
|