2023-01-06 00:11:11 +01:00
|
|
|
{ self, ... }:
|
|
|
|
{ modulesPath, ... }: {
|
|
|
|
imports = [
|
2024-01-02 22:01:55 +01:00
|
|
|
(modulesPath + "/virtualisation/lxc-container.nix")
|
2023-09-11 20:12:52 +02:00
|
|
|
|
|
|
|
./backup.nix
|
2023-01-06 00:11:11 +01:00
|
|
|
../../users/root
|
|
|
|
../../users/erwin
|
|
|
|
];
|
|
|
|
|
|
|
|
eboskma = {
|
2023-07-04 20:29:59 +02:00
|
|
|
users.erwin = {
|
|
|
|
enable = true;
|
|
|
|
server = true;
|
|
|
|
};
|
2023-01-06 00:11:11 +01:00
|
|
|
services = {
|
|
|
|
minio.enable = true;
|
|
|
|
};
|
|
|
|
nix-common = {
|
|
|
|
enable = true;
|
|
|
|
remote-builders = true;
|
|
|
|
};
|
2024-01-02 22:01:55 +01:00
|
|
|
tailscale.enable = true;
|
2023-01-06 00:11:11 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
time.timeZone = "Europe/Amsterdam";
|
|
|
|
|
|
|
|
system.configurationRevision = self.inputs.nixpkgs.lib.mkIf (self ? rev) self.rev;
|
|
|
|
|
2024-01-02 22:01:55 +01:00
|
|
|
networking = {
|
|
|
|
hostName = "minio";
|
|
|
|
useDHCP = false;
|
|
|
|
useHostResolvConf = false;
|
|
|
|
networkmanager.enable = false;
|
|
|
|
useNetworkd = true;
|
|
|
|
nftables.enable = true;
|
|
|
|
|
|
|
|
firewall.trustedInterfaces = [ "tailscale0" ];
|
2023-01-06 00:11:11 +01:00
|
|
|
};
|
|
|
|
|
2024-01-02 22:01:55 +01:00
|
|
|
systemd.network = {
|
|
|
|
enable = true;
|
|
|
|
|
2024-01-29 10:27:21 +01:00
|
|
|
wait-online.anyInterface = true;
|
|
|
|
|
2024-01-02 22:01:55 +01:00
|
|
|
networks = {
|
|
|
|
"40-eth0" = {
|
|
|
|
matchConfig = {
|
|
|
|
Name = "eth0";
|
|
|
|
};
|
|
|
|
|
|
|
|
networkConfig = {
|
|
|
|
Address = "10.0.0.204/24";
|
|
|
|
Gateway = "10.0.0.1";
|
|
|
|
DNS = "10.0.0.206";
|
|
|
|
DHCP = "no";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2023-01-06 00:11:11 +01:00
|
|
|
|
2024-01-02 22:01:55 +01:00
|
|
|
security = {
|
|
|
|
sudo-rs = {
|
|
|
|
enable = true;
|
|
|
|
execWheelOnly = true;
|
|
|
|
wheelNeedsPassword = false;
|
|
|
|
};
|
|
|
|
sudo.enable = false;
|
|
|
|
};
|
2023-01-06 00:11:11 +01:00
|
|
|
|
|
|
|
sops.defaultSopsFile = ./secrets.yaml;
|
|
|
|
sops.secrets = {
|
|
|
|
minio-root-credentials = { };
|
2023-09-11 20:12:52 +02:00
|
|
|
minio_backup_ssh_key = { };
|
|
|
|
minio_backup_pass = { };
|
2023-01-06 00:11:11 +01:00
|
|
|
};
|
|
|
|
|
2024-01-02 22:01:55 +01:00
|
|
|
system.stateVersion = "24.05";
|
2023-01-06 00:11:11 +01:00
|
|
|
}
|