Advertisement
Guest User

Nix package manager on Guix

a guest
Oct 2nd, 2019
1,180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 4.21 KB | None | 0 0
  1.                   (supplementary-groups
  2.                     '("wheel" "netdev" "audio" "video")))
  3.     (user-account
  4.     (name "nixbld1")
  5.     (comment "")
  6.     (group "nixbld")
  7.     (supplementary-groups
  8.     '("nixbld"))
  9.     (create-home-directory? #f)
  10.     (shell "$(which nologin)")
  11.     (system? #t))
  12.        
  13.     (user-account
  14.     (name "nixbld2")
  15.     (comment "")
  16.     (group "nixbld")
  17.     (supplementary-groups
  18.     '("nixbld"))
  19.     (create-home-directory? #f)
  20.     (shell "$(which nologin)")
  21.     (system? #t))
  22.        
  23.     (user-account
  24.     (name "nixbld3")
  25.     (comment "")
  26.     (group "nixbld")
  27.     (supplementary-groups
  28.     '("nixbld"))
  29.     (create-home-directory? #f)
  30.     (shell "$(which nologin)")
  31.     (system? #t))
  32.        
  33.     (user-account
  34.     (name "nixbld4")
  35.     (comment "")
  36.     (group "nixbld")
  37.     (supplementary-groups
  38.     '("nixbld"))
  39.     (create-home-directory? #f)
  40.     (shell "$(which nologin)")
  41.     (system? #t))
  42.        
  43.     (user-account
  44.     (name "nixbld5")
  45.     (comment "")
  46.     (group "nixbld")
  47.     (supplementary-groups
  48.     '("nixbld"))
  49.     (create-home-directory? #f)
  50.     (shell "$(which nologin)")
  51.     (system? #t))
  52.        
  53.     (user-account
  54.     (name "nixbld6")
  55.     (comment "")
  56.     (group "nixbld")
  57.     (supplementary-groups
  58.     '("nixbld"))
  59.     (create-home-directory? #f)
  60.     (shell "$(which nologin)")
  61.     (system? #t))
  62.        
  63.     (user-account
  64.     (name "nixbld7")
  65.     (comment "")
  66.     (group "nixbld")
  67.     (supplementary-groups
  68.     '("nixbld"))
  69.     (create-home-directory? #f)
  70.     (shell "$(which nologin)")
  71.     (system? #t))
  72.        
  73.     (user-account
  74.     (name "nixbld8")
  75.     (comment "")
  76.     (group "nixbld")
  77.     (supplementary-groups
  78.     '("nixbld"))
  79.     (create-home-directory? #f)
  80.     (shell "$(which nologin)")
  81.     (system? #t))
  82.        
  83.     (user-account
  84.     (name "nixbld9")
  85.     (comment "")
  86.     (group "nixbld")
  87.     (supplementary-groups
  88.     '("nixbld"))
  89.     (create-home-directory? #f)
  90.     (shell "$(which nologin)")
  91.     (system? #t))
  92.      
  93.     (user-account
  94.     (name "nixbld10")
  95.     (comment "")
  96.     (group "nixbld")
  97.     (supplementary-groups
  98.     '("nixbld"))
  99.     (create-home-directory? #f)
  100.     (shell "$(which nologin)")
  101.     (system? #t))
  102.               %base-user-accounts))
  103.  
  104.   (groups (cons* (user-group
  105.     (name "nixbld"))
  106.     %base-groups))
  107.   (packages
  108.     (append
  109.     (map specification->package
  110.         '("nss-certs" "nix" "rsync" "evolution"
  111.           "evolution-data-server" "icecat" "tcpdump" "instantmusic"
  112.           "ffmpeg" "libreoffice" "gnome-screenshot" "geany"
  113.           "u-boot-tools" "gnupg" "gpa" "gnucash" "wget2"
  114.           ))
  115.       %base-packages))
  116.   (services
  117.     (append
  118.       (list (service gnome-desktop-service-type)
  119.             (service tor-service-type)
  120.             (service openssh-service-type)
  121.         (service rsync-service-type)
  122.         (set-xorg-configuration
  123.             (xorg-configuration
  124.                 (keyboard-layout keyboard-layout))))
  125.             %desktop-services)))
  126.  
  127. 3) You need to append the following code to ~/.bashrc and /root/.bashrc.
  128.  
  129. After the code is added, you will need to launch a new terminal window to see "echo "creating $HOME/.nix-defexpr""
  130.  
  131. export GUIX_LOCPATH="$HOME/.guix-profile/lib/locale"
  132. export NODE_PATH="/home/user/.guix-profile/lib/node_modules${NODE_PATH:+:}$NODE_PATH"
  133. export NIX_REMOTE=daemon
  134. export C_INCLUDE_PATH="/home/user/.guix-profile/include${C_INCLUDE_PATH:+:}$C_INCLUDE_PATH"
  135. export CPLUS_INCLUDE_PATH="/home/user/.guix-profile/include${CPLUS_INCLUDE_PATH:+:}$CPLUS_INCLUDE_PATH"
  136. export LIBRARY_PATH="/home/user/.guix-profile/lib${LIBRARY_PATH:+:}$LIBRARY_PATH"
  137. export NIX_PROFILES="/nix/var/nix/profiles/default $HOME/.nix-profile"
  138. for i in $NIX_PROFILES; do
  139.     export PATH="${PATH}:${i}/bin"
  140. done
  141. export PATH="/home/user/.config/guix/current/bin${PATH:+:}${PATH}"
  142. if [ ! -e $HOME/.nix-defexpr -o -L $HOME/.nix-defexpr ]; then
  143.     echo "creating $HOME/.nix-defexpr" >&2
  144.     rm -f $HOME/.nix-defexpr
  145.     mkdir $HOME/.nix-defexpr
  146.     if [ "$USER" != root ]; then
  147.         ln -s /nix/var/nix/profiles/per-user/root/channels \
  148.           $HOME/.nix-defexpr/channels_root
  149.     fi
  150. fi
  151.  
  152. if test "$USER" != root; then
  153.     export NIX_REMOTE=daemon
  154. else
  155.     export NIX_REMOTE=
  156. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement