diff options
Diffstat (limited to 'systems/atlas')
| -rw-r--r-- | systems/atlas/default.nix | 8 | ||||
| -rw-r--r-- | systems/atlas/teawiebot.nix | 12 |
2 files changed, 13 insertions, 7 deletions
diff --git a/systems/atlas/default.nix b/systems/atlas/default.nix index 2a8346f..836aef7 100644 --- a/systems/atlas/default.nix +++ b/systems/atlas/default.nix @@ -1,17 +1,15 @@ { config, pkgs, - secretsDir, ... }: { imports = [ ./hardware-configuration.nix ./miniflux.nix ./nginx.nix + ./teawiebot.nix ]; - age.secrets.teawiebot.file = secretsDir + "/teawieBot.age"; - boot = { loader.systemd-boot.enable = true; loader.efi.canTouchEfiVariables = true; @@ -25,10 +23,6 @@ services = { resolved.enable = false; - teawiebot = { - enable = true; - environmentFile = config.age.secrets.teawiebot.path; - }; }; users.users.atlas = { diff --git a/systems/atlas/teawiebot.nix b/systems/atlas/teawiebot.nix new file mode 100644 index 0000000..dac2998 --- /dev/null +++ b/systems/atlas/teawiebot.nix @@ -0,0 +1,12 @@ +{ + config, + secretsDir, + ... +}: { + age.secrets.teawiebot.file = secretsDir + "/teawieBot.age"; + + services.teawiebot = { + enable = true; + environmentFile = config.age.secrets.teawiebot.path; + }; +} |
