# msgid "" msgstr "" msgid "" "title: Guix users in NixOS system configuration\n" "date: 2018-07-13\n" "layout: pastebin\n" "lang: en" msgstr "" msgid "" " users = {\n" " mutableUsers = false;\n" "\n" " extraUsers =\n" " let\n" " andrehUser = {\n" " andreh = {\n" " # my custom user config\n" " };\n" " };\n" " # From the Guix manual:\n" " # https://www.gnu.org/software/guix/manual/en/html_node/Build-Environment-Setup.html#Build-Environment-Setup\n" " buildUser = (i:\n" " {\n" " \"guixbuilder${i}\" = { # guixbuilder$i\n" " group = \"guixbuild\"; # -g guixbuild\n" " extraGroups = [\"guixbuild\"]; # -G guixbuild\n" " home = \"/var/empty\"; # -d /var/empty\n" " shell = pkgs.nologin; # -s `which nologin`\n" " description = \"Guix build user ${i}\"; # -c \"Guix buid user $i\"\n" " isSystemUser = true; # --system\n" " };\n" " }\n" " );\n" " in\n" " # merge all users\n" " pkgs.lib.fold (str: acc: acc // buildUser str)\n" " andrehUser\n" " # for i in `seq -w 1 10`\n" " (map (pkgs.lib.fixedWidthNumber 2) (builtins.genList (n: n+1) 10));\n" "\n" " extraGroups.guixbuild = {\n" " name = \"guixbuild\";\n" " };\n" " };\n" msgstr ""