diff --git a/flake.nix b/flake.nix index f26d16d..5ffbaaa 100644 --- a/flake.nix +++ b/flake.nix @@ -44,13 +44,17 @@ }; nixosModules.bot = { config, lib, ... }: { - options.within.services.mara-bot.enable = lib.mkEnableOption "enable Mara bot"; + options.within.services.mara-bot.enable = + lib.mkEnableOption "enable Mara bot"; config = lib.mkIf config.within.services.mara-bot.enable { + users.groups.mara-bot = { }; + users.users.mara-bot = { createHome = true; isSystemUser = true; home = "/var/lib/mara-bot"; + group = "mara-bot"; }; systemd.services.mara-bot = {