diff --git a/flake.nix b/flake.nix index f2f3f0b..1bc1687 100644 --- a/flake.nix +++ b/flake.nix @@ -196,6 +196,7 @@ inputs.worblehat.nixosModules.default ]; overlays = [ + self.nixosModules.drumknotty inputs.dibbler.overlays.default inputs.worblehat.overlays.default ]; diff --git a/hosts/skrot/configuration.nix b/hosts/skrot/configuration.nix index e2241b7..d39550c 100644 --- a/hosts/skrot/configuration.nix +++ b/hosts/skrot/configuration.nix @@ -28,18 +28,22 @@ sops.secrets = { "dibbler/postgresql/password" = { - owner = "dibbler"; - group = "dibbler"; + owner = "drumknotty"; + group = "drumknotty"; + }; + "worblehat/postgresql/password" = { + owner = "drumknotty"; + group = "drumknotty"; }; }; - services.dibbler = { + services.drumknotty = { enable = true; kioskMode = true; limitScreenWidth = 80; limitScreenHeight = 42; - settings = { + dibblerSettings = { general.quit_allowed = false; database = { 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) {