;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2019, 2020 Oleg Pykhalov ;;; Copyright © 2020 Peng Mei Yu ;;; ;;; This file is part of GNU Guix. ;;; ;;; GNU Guix is free software; you can redistribute it and/or modify it ;;; under the terms of the GNU General Public License as published by ;;; the Free Software Foundation; either version 3 of the License, or (at ;;; your option) any later version. ;;; ;;; GNU Guix is distributed in the hope that it will be useful, but ;;; WITHOUT ANY WARRANTY; without even the implied warranty of ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;;; GNU General Public License for more details. ;;; ;;; You should have received a copy of the GNU General Public License ;;; along with GNU Guix. If not, see . (define-module (gnu services nix) #:use-module (gnu packages admin) #:use-module (gnu packages package-management) #:use-module (gnu services base) #:use-mod
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/packages/dvtm.scm')
0 files changed, 0 insertions, 0 deletions
mat #t "build-sandbox-paths = ~{~a ~}~%" (append (append-map (cut call-with-input-file <> read) '#$(map references-file (list package))) '#$build-sandbox-items)) (for-each (cut display <>) '#$extra-config) (newline)))))))) (define nix-shepherd-service ;; Return a for Nix. (match-lambda (($ package _ _ _ extra-options) (list (shepherd-service (provision '(nix-daemon)) (documentation "Run nix-daemon.") (requirement '()) (start #~(make-forkexec-constructor (list (string-append #$package "/bin/nix-daemon") #$@extra-options))) (respawn? #f) (stop #~(make-kill-destructor))))))) (define nix-service-type (service-type (name 'nix) (extensions (list (service-extension shepherd-root-service-type nix-shepherd-service) (service-extension account-service-type nix-accounts) (service-extension activation-service-type nix-activation) (service-extension profile-service-type (compose list nix-configuration-package)))) (description "Run the Nix daemon.") (default-value (nix-configuration)))) ;;; nix.scm ends here