nixos-config/machines/elendel/default.nix
Charlotte Van Petegem ecf5174044
Some checks failed
Cachix / build (elendel) (push) Successful in 1m28s
Cachix / build (kholinar) (push) Successful in 1m56s
Cachix / build (lasting-integrity) (push) Successful in 1m7s
Cachix / build (marabethia) (push) Has been cancelled
Cachix / build (urithiru) (push) Has been cancelled
elendel: Enable data-access
2024-12-04 12:12:04 +01:00

69 lines
1.4 KiB
Nix

{ pkgs, ... }:
{
imports = [ ./hardware.nix ];
time.timeZone = "Europe/Brussels";
networking = {
hostId = "338495bc";
useDHCP = false;
};
systemd.network = {
enable = true;
networks."enp7s0" = {
enable = true;
matchConfig = { Name = "enp7s0"; };
address = [
"37.27.113.55/26"
"2a01:4f9:3070:2382::/64"
];
gateway = [ "37.27.113.1" ];
routes = [
{
Gateway = "fe80::1";
GatewayOnLink = true;
}
];
dns = [
"1.1.1.1"
"1.0.0.1"
"2606:4700:4700::1111"
"2606:4700:4700::1001"
];
};
};
chvp = {
stateVersion = "24.11";
base = {
nix.enableDirenv = true;
zfs = {
enable = true;
backups = [
{
path = "zroot/safe/data";
remotePath = "zroot/recv/elendel/safe/data";
fast = true;
location = "marabethia.vanpetegem.me";
}
{
path = "zdata/safe/data";
remotePath = "zdata/data";
fast = false;
location = "socrates.machines.robbevp.be";
}
];
rootDataset = "zroot/local/root";
rootPool = "zroot";
};
};
services = {
containers.externalInterface = "enp7s0";
data-access.enable = true;
git.runner.enable = true;
torrents.enable = true;
};
};
}