Files
pvv-nixos-config/hosts/skrot/configuration.nix
System administrator 9048261756 sopsing
2026-02-10 20:53:05 +01:00

57 lines
1.1 KiB
Nix

{
fp,
lib,
config,
values,
pkgs,
...
}:
{
imports = [
# Include the results of the hardware scan.
./hardware-configuration.nix
./disk-config.nix
(fp /base)
];
sops.defaultSopsFile = fp /secrets/skrot/skrot.yaml;
systemd.network.networks."enp2s0" = values.defaultNetworkConfig // {
matchConfig.Name = "enp2s0";
address = with values.hosts.skrot; [
(ipv4 + "/25")
(ipv6 + "/64")
];
};
sops.secrets = {
"dibbler/postgresql/password" = {
owner = "dibbler";
group = "dibbler";
};
};
services.dibbler = {
enable = true;
kioskMode = false;
limitScreenWidth = 80;
limitScreenHeight = 42;
settings = {
general.quit_allowed = false;
database = {
type = "postgresql";
postgresql = {
username = "pvv_vv";
dbname = "pvv_vv";
host = "postgres.pvv.ntnu.no";
password = config.sops.secrets."dibbler/postgresql/password".path;
};
};
};
};
system.stateVersion = "25.11"; # Did you read the comment? Nah bro
}