blob: 681d0ce021e0ba303490dbd7ea0469761d5dfdde (
about) (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
#
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 ""
|