Compare commits

...

2 Commits

Author SHA1 Message Date
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

View File

@@ -3,7 +3,6 @@
lib, lib,
config, config,
values, values,
pkgs,
... ...
}: }:
@@ -15,6 +14,8 @@
(fp /base) (fp /base)
]; ];
boot.consoleLogLevel = 0;
sops.defaultSopsFile = fp /secrets/skrot/skrot.yaml; sops.defaultSopsFile = fp /secrets/skrot/skrot.yaml;
systemd.network.networks."enp2s0" = values.defaultNetworkConfig // { systemd.network.networks."enp2s0" = values.defaultNetworkConfig // {
@@ -34,7 +35,7 @@
services.dibbler = { services.dibbler = {
enable = true; enable = true;
kioskMode = false; kioskMode = true;
limitScreenWidth = 80; limitScreenWidth = 80;
limitScreenHeight = 42; limitScreenHeight = 42;
@@ -46,11 +47,17 @@
username = "pvv_vv"; username = "pvv_vv";
dbname = "pvv_vv"; dbname = "pvv_vv";
host = "postgres.pvv.ntnu.no"; 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 system.stateVersion = "25.11"; # Did you read the comment? Nah bro
} }