2023-06-07 08:34:16 +02:00
|
|
|
{ self, ... }:
|
2024-02-05 11:46:52 +01:00
|
|
|
{ modulesPath, ... }:
|
|
|
|
{
|
2023-06-07 08:34:16 +02:00
|
|
|
imports = [
|
2024-01-02 22:01:55 +01:00
|
|
|
(modulesPath + "/virtualisation/lxc-container.nix")
|
2023-06-07 08:34:16 +02:00
|
|
|
|
|
|
|
../../users/root
|
|
|
|
../../users/erwin
|
2024-01-22 19:57:40 +01:00
|
|
|
|
|
|
|
./adguard
|
|
|
|
./unbound
|
2023-06-07 08:34:16 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
eboskma = {
|
|
|
|
users.erwin = {
|
|
|
|
enable = true;
|
|
|
|
server = true;
|
|
|
|
};
|
|
|
|
adguard = {
|
2024-02-05 11:46:52 +01:00
|
|
|
upstreams = [ "127.0.0.1:5335" ];
|
2023-06-07 08:34:16 +02:00
|
|
|
};
|
|
|
|
nix-common = {
|
|
|
|
enable = true;
|
|
|
|
remote-builders = true;
|
|
|
|
};
|
2024-01-02 22:01:55 +01:00
|
|
|
tailscale.enable = true;
|
2023-06-07 08:34:16 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
services.resolved.extraConfig = ''
|
|
|
|
DNSStubListener=no
|
|
|
|
'';
|
|
|
|
|
|
|
|
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 = "valkyrie";
|
|
|
|
useDHCP = false;
|
|
|
|
useHostResolvConf = false;
|
|
|
|
networkmanager.enable = false;
|
|
|
|
useNetworkd = true;
|
|
|
|
nftables.enable = true;
|
|
|
|
|
|
|
|
firewall.trustedInterfaces = [ "tailscale0" ];
|
2023-06-07 08:34:16 +02:00
|
|
|
};
|
|
|
|
|
2024-01-02 22:01:55 +01:00
|
|
|
systemd.network = {
|
|
|
|
enable = true;
|
|
|
|
|
2024-01-22 19:57:40 +01:00
|
|
|
wait-online.anyInterface = true;
|
|
|
|
|
2024-01-02 22:01:55 +01:00
|
|
|
networks = {
|
|
|
|
"40-eth0" = {
|
|
|
|
matchConfig = {
|
|
|
|
Name = "eth0";
|
|
|
|
};
|
2023-07-05 10:08:42 +02:00
|
|
|
|
2024-01-02 22:01:55 +01:00
|
|
|
networkConfig = {
|
|
|
|
Address = "10.0.0.206/24";
|
|
|
|
Gateway = "10.0.0.1";
|
|
|
|
DNS = "127.0.0.1";
|
|
|
|
DHCP = "no";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2023-06-07 08:34:16 +02:00
|
|
|
|
2024-01-02 22:01:55 +01:00
|
|
|
security = {
|
|
|
|
sudo-rs = {
|
|
|
|
enable = true;
|
|
|
|
execWheelOnly = true;
|
|
|
|
wheelNeedsPassword = false;
|
|
|
|
};
|
|
|
|
sudo.enable = false;
|
|
|
|
};
|
2023-06-07 08:34:16 +02:00
|
|
|
|
|
|
|
system.stateVersion = "23.11";
|
|
|
|
}
|