Compare commits

..

4 Commits

Author SHA1 Message Date
Vegard Bieker Matthey
26d68fba3e update README to add host 2026-02-14 19:10:43 +01:00
Vegard Bieker Matthey
3b15d1c2c4 fix skrot and skrott conflict 2026-02-14 18:22:27 +01:00
System administrator
036f0e1701 fix ttyUSB0 things 2026-02-13 19:02:02 +01:00
System administrator
c1ada2f94d fix sops 2026-02-13 17:57:44 +01:00
4 changed files with 13 additions and 6 deletions

View File

@@ -43,7 +43,7 @@ revert the changes on the next nightly rebuild (tends to happen when everybody i
| [kommode][kom] | Virtual | Gitea + Gitea pages |
| [lupine][lup] | Physical | Gitea CI/CD runners |
| shark | Virtual | Test host for authentication, absolutely horrendous |
| [skrott][skr] | Physical | Kiosk, snacks and soda |
| [skrott/skrot][skr] | Physical | Kiosk, snacks and soda |
| [wenche][wen] | Virtual | Nix-builders, general purpose compute |
## Documentation

View File

@@ -3,7 +3,6 @@
lib,
config,
values,
pkgs,
...
}:
@@ -15,6 +14,8 @@
(fp /base)
];
boot.consoleLogLevel = 0;
sops.defaultSopsFile = fp /secrets/skrot/skrot.yaml;
systemd.network.networks."enp2s0" = values.defaultNetworkConfig // {
@@ -34,7 +35,7 @@
services.dibbler = {
enable = true;
kioskMode = false;
kioskMode = true;
limitScreenWidth = 80;
limitScreenHeight = 42;
@@ -46,11 +47,17 @@
username = "pvv_vv";
dbname = "pvv_vv";
host = "postgres.pvv.ntnu.no";
password = config.sops.secrets."dibbler/postgresql/password".path;
password_file = config.sops.secrets."dibbler/postgresql/password".path;
};
};
};
};
systemd.services."serial-getty@ttyUSB0" = lib.mkIf (!config.virtualisation.isVmVariant) {
enable = true;
wantedBy = [ "getty.target" ]; # to start at boot
serviceConfig.Restart = "always"; # restart when session is closed
};
system.stateVersion = "25.11"; # Did you read the comment? Nah bro
}

View File

@@ -59,7 +59,7 @@
# zramSwap.enable = true;
networking = {
hostName = "skrot";
hostName = "skrott";
defaultGateway = values.hosts.gateway;
defaultGateway6 = values.hosts.gateway6;
interfaces.eth0 = {

View File

@@ -228,7 +228,7 @@ in {
(mkConnection "demiurgen" "eno1")
(mkConnection "sanctuary" "ethernet_0")
(mkConnection "torskas" "eth0")
(mkConnection "skrot" "eth0")
(mkConnection "skrott" "eth0")
(mkConnection "homeassistant" "eth0")
(mkConnection "orchid" "eth0")
(mkConnection "principal" "em0")