dev.fron.io rc / b23ff85
system(delta): minecraft service env Tony Olagbaiye a month ago
1 changed file(s) with 7 addition(s) and 13 deletion(s). Raw diff Collapse all Expand all
6767 (keyboard-layout keyboard-layout)))
6868
6969 (kernel linux)
70 ;; CONFIG_IKCONFIG=y
71 ;; CONFIG_IKCONFIG_PROC=y
7072 (kernel-arguments (cons*;"nomodeset"
7173 "i915.modeset=0"
7274 "modprobe.blacklist=pcspkr"
345347 (chown "/var/lib/minecraft"
346348 (passwd:uid user) (passwd:gid user))
347349 (chdir "/var/lib/minecraft")
348 ;; /nix/store/41zy3hnpbd1rnfxc72h7mb1xjj78rh3i-unit-script-minecraft-server-pre-start/bin/minecraft-server-pre-start
349 ;; -> https://gateway.ipfs.io/ipfs/QmbzcDZzxFDggQcKNGwRCDQvVqZovUvVDMq6nnMbYjboZs
350350 (fork+exec-command
351351 (list mc "-Xmx2048M" "-Xms2048M")
352352 #:user (passwd:uid user)
353 #:group (passwd:gid user))))))))
354 (simple-service 'no-eth shepherd-root-service-type
355 (list (shepherd-service
356 (documentation "Set enp4s0u1 link down.")
357 (provision '(no-eth))
358 (requirement '(networking))
359 (start #~(lambda _
360 (let ((ip (string-append #$iproute "/sbin/ip")))
361 (system* ip "link" "set" "enp4s0u1" "down")
362 #t)))
363 (one-shot? #t))))
353 #:group (passwd:gid user)
354 #:environment-variables
355 (list (string-append "HOME=" (passwd:dir user))
356 "SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt"
357 "SSL_CERT_DIR=/etc/ssl/certs"))))))))
364358 (simple-service 'use-gnu-var session-environment-service-type
365359 `(("GUIX_STATE_DIRECTORY" . "/gnu/var")))
366360 (extra-special-file