From 4bba2ecccaeaa335247e85bd62e30e463214ade5 Mon Sep 17 00:00:00 2001 From: Reinout Meliesie Date: Tue, 4 Mar 2025 17:23:07 +0100 Subject: [PATCH] Add system user for Bookwyrm service --- packages/bookwyrm/nixos-module.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/packages/bookwyrm/nixos-module.nix b/packages/bookwyrm/nixos-module.nix index 3c7b364..42049e5 100644 --- a/packages/bookwyrm/nixos-module.nix +++ b/packages/bookwyrm/nixos-module.nix @@ -28,4 +28,17 @@ with pkgs . kernelmaft ; } ; } ; } ; + + users = { + groups = { + bookwyrm = {} ; + } ; + users = { + bookwyrm = { + group = "bookwyrm" ; + home = "/var/lib/bookwyrm" ; + isSystemUser = true ; + } ; + } ; + } ; }