From 0f2b46cdba7064ba7bb6f24bb0785010a332117c Mon Sep 17 00:00:00 2001 From: The-M1k3y Date: Mon, 2 Oct 2017 15:53:30 +0200 Subject: [PATCH] nixos/gogs: fixed user creation if non-default user --- nixos/modules/services/misc/gogs.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/misc/gogs.nix b/nixos/modules/services/misc/gogs.nix index d6e827a53fdf..cf1fbc7bcfa9 100644 --- a/nixos/modules/services/misc/gogs.nix +++ b/nixos/modules/services/misc/gogs.nix @@ -240,7 +240,7 @@ in }; }; - users = { + users = mkIf (cfg.user == "gogs") { extraUsers.gogs = { description = "Go Git Service"; uid = config.ids.uids.gogs;