apparently you need a group here
Signed-off-by: Xe <me@christine.website>
This commit is contained in:
parent
2e771b01cc
commit
669344d641
|
@ -44,13 +44,17 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
nixosModules.bot = { config, lib, ... }: {
|
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 {
|
config = lib.mkIf config.within.services.mara-bot.enable {
|
||||||
|
users.groups.mara-bot = { };
|
||||||
|
|
||||||
users.users.mara-bot = {
|
users.users.mara-bot = {
|
||||||
createHome = true;
|
createHome = true;
|
||||||
isSystemUser = true;
|
isSystemUser = true;
|
||||||
home = "/var/lib/mara-bot";
|
home = "/var/lib/mara-bot";
|
||||||
|
group = "mara-bot";
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.services.mara-bot = {
|
systemd.services.mara-bot = {
|
||||||
|
|
Loading…
Reference in New Issue