blob: 2c14d50d9ad164c0f3004fcb925ec1b4fe54167c (
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
#
msgid ""
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 ""
msgid "title: Guix users in NixOS system configuration"
msgstr ""
msgid "date: 2018-07-13"
msgstr ""
msgid "lang: en"
msgstr ""
msgid "eu_categories: nix,guix"
msgstr ""
msgid "layout: post"
msgstr ""
msgid "ref: guix-users-in-nixos-system-configuration"
msgstr ""
#~ msgid "layout: pastebin"
#~ msgstr ""
#~ msgid ""
#~ "title: Guix users in NixOS system configuration\n"
#~ "date: 2018-07-13\n"
#~ "layout: pastebin\n"
#~ "lang: en"
#~ msgstr ""
|