nixos-config/machines/urithiru/default.nix
Charlotte Van Petegem 0df4d5654f
Finish modularising config
There are still some things I want to change, but at least there aren't two systems now.
2021-06-27 00:32:31 +02:00

49 lines
1.1 KiB
Nix

{ lib, pkgs, nixosConfigurations, ... }:
{
imports = [
./hardware.nix
./secret.nix
../../containers/data-access
];
time.timeZone = "Europe/Berlin";
networking.hostId = "079e60ba";
environment.etc = lib.mapAttrs' (n: v: { name = "pinned-hosts/${n}"; value = { source = v.config.system.build.toplevel.outPath; }; })
(lib.filterAttrs (n: _: n != "urithiru") nixosConfigurations);
# Machine-specific module settings
chvp = {
stateVersion = "20.09";
accentor.enable = true;
nginx.enable = true;
ovh.enable = true;
smartd.enable = true;
sshd.enable = true;
teeworlds.enable = false;
zeroad = {
enable = true;
asServer = true;
};
zfs = {
enable = true;
backups = [
{
path = "zroot/safe/data";
remotePath = "zdata/recv/urithiru/safe/data";
fast = true;
location = "192.168.0.2";
}
{
path = "zdata/data";
remotePath = "zdata/data";
fast = false;
location = "192.168.0.2";
}
];
rootDataset = "zroot/local/root";
};
};
}