diff options
Diffstat (limited to 'makefu/2configs/bureautomation')
-rw-r--r-- | makefu/2configs/bureautomation/automation/philosophische-tuer.nix | 4 | ||||
-rw-r--r-- | makefu/2configs/bureautomation/default.nix | 2 | ||||
-rw-r--r-- | makefu/2configs/bureautomation/kalauerbot.nix | 10 |
3 files changed, 13 insertions, 3 deletions
diff --git a/makefu/2configs/bureautomation/automation/philosophische-tuer.nix b/makefu/2configs/bureautomation/automation/philosophische-tuer.nix index 8c3fed6de..780ba1765 100644 --- a/makefu/2configs/bureautomation/automation/philosophische-tuer.nix +++ b/makefu/2configs/bureautomation/automation/philosophische-tuer.nix @@ -18,7 +18,9 @@ let samples = user: lib.mapAttrsToList (file: _: ''"${prefix}/${user}/${file}"'') (builtins.readDir (toString ( recordrepo+ "/recordings/${user}"))); - random_tuerspruch = ''{{'' + (lib.concatStringsSep "," ((samples "Felix") ++ (samples "Sofia") ++ (samples "Markus"))) + ''| random}}''; # TODO read from derivation + random_tuerspruch = ''{{['' + (lib.concatStringsSep "," ( + (samples "Felix") ++ (samples "Sofia") ++ (samples "Markus") + )) + ''] | random}}''; # TODO read from derivation in { systemd.services.copy-philosophische-tuersounds = { diff --git a/makefu/2configs/bureautomation/default.nix b/makefu/2configs/bureautomation/default.nix index 7eb297879..aa13b62b7 100644 --- a/makefu/2configs/bureautomation/default.nix +++ b/makefu/2configs/bureautomation/default.nix @@ -12,7 +12,7 @@ in { # hass config ## complex configs - ./multi/daily-standup.nix + # ./multi/daily-standup.nix ./multi/aramark.nix ./multi/matrix.nix ./multi/frosch.nix diff --git a/makefu/2configs/bureautomation/kalauerbot.nix b/makefu/2configs/bureautomation/kalauerbot.nix index ff045e2f3..aa66e30b4 100644 --- a/makefu/2configs/bureautomation/kalauerbot.nix +++ b/makefu/2configs/bureautomation/kalauerbot.nix @@ -1,11 +1,19 @@ { config, lib, pkgs, ... }: +let + oofdir = fetchTarball { + url = "https://o.euer.krebsco.de/s/AZn9QPLGFZeDfNq/download"; + sha256 = "1wa59rkgffql6hbiw9vv0zh35wx9x1cp4bnwicprbd0kdxj75miz"; + }; +in { systemd.services.kalauerbot = { description = "Kalauerbot"; after = [ "network-online.target" ]; wantedBy = [ "multi-user.target" ]; - environment = import <secrets/bureautomation/citadel.nix>; + environment = import <secrets/bureautomation/citadel.nix> // { + "KALAUER_OOFDIR" = oofdir; + }; serviceConfig = { DynamicUser = true; StateDirectory = "kalauerbot"; |