actually use drumknotty

This commit is contained in:
Vegard Bieker Matthey
2026-03-17 14:38:53 +01:00
parent 61bd833806
commit 53ac8f9a3d
2 changed files with 21 additions and 4 deletions

View File

@@ -196,6 +196,7 @@
inputs.worblehat.nixosModules.default inputs.worblehat.nixosModules.default
]; ];
overlays = [ overlays = [
self.nixosModules.drumknotty
inputs.dibbler.overlays.default inputs.dibbler.overlays.default
inputs.worblehat.overlays.default inputs.worblehat.overlays.default
]; ];

View File

@@ -28,18 +28,22 @@
sops.secrets = { sops.secrets = {
"dibbler/postgresql/password" = { "dibbler/postgresql/password" = {
owner = "dibbler"; owner = "drumknotty";
group = "dibbler"; group = "drumknotty";
};
"worblehat/postgresql/password" = {
owner = "drumknotty";
group = "drumknotty";
}; };
}; };
services.dibbler = { services.drumknotty = {
enable = true; enable = true;
kioskMode = true; kioskMode = true;
limitScreenWidth = 80; limitScreenWidth = 80;
limitScreenHeight = 42; limitScreenHeight = 42;
settings = { dibblerSettings = {
general.quit_allowed = false; general.quit_allowed = false;
database = { database = {
type = "postgresql"; type = "postgresql";
@@ -51,6 +55,18 @@
}; };
}; };
}; };
worblehatSettings = {
general.quit_allowed = false;
database = {
type = "postgresql";
postgresql = {
username = "pvv_vv";
dbname = "pvv_vv";
host = "postgres.pvv.ntnu.no";
password_file = config.sops.secrets."worblehat/postgresql/password".path;
};
};
};
}; };
systemd.services."serial-getty@ttyUSB0" = lib.mkIf (!config.virtualisation.isVmVariant) { systemd.services."serial-getty@ttyUSB0" = lib.mkIf (!config.virtualisation.isVmVariant) {