Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (supplementary-groups
- '("wheel" "netdev" "audio" "video")))
- (user-account
- (name "nixbld1")
- (comment "")
- (group "nixbld")
- (supplementary-groups
- '("nixbld"))
- (create-home-directory? #f)
- (shell "$(which nologin)")
- (system? #t))
- (user-account
- (name "nixbld2")
- (comment "")
- (group "nixbld")
- (supplementary-groups
- '("nixbld"))
- (create-home-directory? #f)
- (shell "$(which nologin)")
- (system? #t))
- (user-account
- (name "nixbld3")
- (comment "")
- (group "nixbld")
- (supplementary-groups
- '("nixbld"))
- (create-home-directory? #f)
- (shell "$(which nologin)")
- (system? #t))
- (user-account
- (name "nixbld4")
- (comment "")
- (group "nixbld")
- (supplementary-groups
- '("nixbld"))
- (create-home-directory? #f)
- (shell "$(which nologin)")
- (system? #t))
- (user-account
- (name "nixbld5")
- (comment "")
- (group "nixbld")
- (supplementary-groups
- '("nixbld"))
- (create-home-directory? #f)
- (shell "$(which nologin)")
- (system? #t))
- (user-account
- (name "nixbld6")
- (comment "")
- (group "nixbld")
- (supplementary-groups
- '("nixbld"))
- (create-home-directory? #f)
- (shell "$(which nologin)")
- (system? #t))
- (user-account
- (name "nixbld7")
- (comment "")
- (group "nixbld")
- (supplementary-groups
- '("nixbld"))
- (create-home-directory? #f)
- (shell "$(which nologin)")
- (system? #t))
- (user-account
- (name "nixbld8")
- (comment "")
- (group "nixbld")
- (supplementary-groups
- '("nixbld"))
- (create-home-directory? #f)
- (shell "$(which nologin)")
- (system? #t))
- (user-account
- (name "nixbld9")
- (comment "")
- (group "nixbld")
- (supplementary-groups
- '("nixbld"))
- (create-home-directory? #f)
- (shell "$(which nologin)")
- (system? #t))
- (user-account
- (name "nixbld10")
- (comment "")
- (group "nixbld")
- (supplementary-groups
- '("nixbld"))
- (create-home-directory? #f)
- (shell "$(which nologin)")
- (system? #t))
- %base-user-accounts))
- (groups (cons* (user-group
- (name "nixbld"))
- %base-groups))
- (packages
- (append
- (map specification->package
- '("nss-certs" "nix" "rsync" "evolution"
- "evolution-data-server" "icecat" "tcpdump" "instantmusic"
- "ffmpeg" "libreoffice" "gnome-screenshot" "geany"
- "u-boot-tools" "gnupg" "gpa" "gnucash" "wget2"
- ))
- %base-packages))
- (services
- (append
- (list (service gnome-desktop-service-type)
- (service tor-service-type)
- (service openssh-service-type)
- (service rsync-service-type)
- (set-xorg-configuration
- (xorg-configuration
- (keyboard-layout keyboard-layout))))
- %desktop-services)))
- 3) You need to append the following code to ~/.bashrc and /root/.bashrc.
- After the code is added, you will need to launch a new terminal window to see "echo "creating $HOME/.nix-defexpr""
- export GUIX_LOCPATH="$HOME/.guix-profile/lib/locale"
- export NODE_PATH="/home/user/.guix-profile/lib/node_modules${NODE_PATH:+:}$NODE_PATH"
- export NIX_REMOTE=daemon
- export C_INCLUDE_PATH="/home/user/.guix-profile/include${C_INCLUDE_PATH:+:}$C_INCLUDE_PATH"
- export CPLUS_INCLUDE_PATH="/home/user/.guix-profile/include${CPLUS_INCLUDE_PATH:+:}$CPLUS_INCLUDE_PATH"
- export LIBRARY_PATH="/home/user/.guix-profile/lib${LIBRARY_PATH:+:}$LIBRARY_PATH"
- export NIX_PROFILES="/nix/var/nix/profiles/default $HOME/.nix-profile"
- for i in $NIX_PROFILES; do
- export PATH="${PATH}:${i}/bin"
- done
- export PATH="/home/user/.config/guix/current/bin${PATH:+:}${PATH}"
- if [ ! -e $HOME/.nix-defexpr -o -L $HOME/.nix-defexpr ]; then
- echo "creating $HOME/.nix-defexpr" >&2
- rm -f $HOME/.nix-defexpr
- mkdir $HOME/.nix-defexpr
- if [ "$USER" != root ]; then
- ln -s /nix/var/nix/profiles/per-user/root/channels \
- $HOME/.nix-defexpr/channels_root
- fi
- fi
- if test "$USER" != root; then
- export NIX_REMOTE=daemon
- else
- export NIX_REMOTE=
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement