From 669344d6415a8fcd264ea38ae1dffba544c1d25b Mon Sep 17 00:00:00 2001 From: Xe Date: Sat, 19 Feb 2022 14:30:32 -0500 Subject: [PATCH] apparently you need a group here Signed-off-by: Xe --- flake.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 = {