From e2a8e4505f40338345a04ee73a14e4cf14f1cbd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dav=C3=AD=C3=B0=20Steinn=20Geirsson?= Date: Mon, 30 Aug 2021 01:54:14 +0000 Subject: [PATCH] jupyter: Create jupyter user as system user Before, with services.jupyter.enable set but no user specified, user creation failed with: ``` error: Failed assertions: - Exactly one of users.users.jupyter.isSystemUser and users.users.jupyter.isNormalUser must be set. ``` Set isSystemUser to true when creating the jupyter user. --- nixos/modules/services/development/jupyter/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/services/development/jupyter/default.nix b/nixos/modules/services/development/jupyter/default.nix index 21b84b3bcdaa..7136f014dec7 100644 --- a/nixos/modules/services/development/jupyter/default.nix +++ b/nixos/modules/services/development/jupyter/default.nix @@ -196,6 +196,7 @@ in { extraGroups = [ cfg.group ]; home = "/var/lib/jupyter"; createHome = true; + isSystemUser = true; useDefaultShell = true; # needed so that the user can start a terminal. }; })