blob: f4f33deeb6677f0c978f8057c55f83cfb04abaa9 (
plain)
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
|
(define-module (pwn services)
#:use-module(gnu)
#:use-module(pwn packages)
#:export (pwn-services)
;; Define the shepherd actions for the one-shot service to use
(shepherd-action
(name 'nix-service-setup)
(documentation "Initial nix package manager setup")
(procedure #~(lambda '(ln -s "/nix/var/nix/profiles/per-user/$USER/profile" ~/.nix-profile
))))
(shepherd-action
(name 'nix-pkgs)
(documentation "Command to install list of Nix packages")
(procedure #~(lambda '(
))))
(shepherd-action
(name 'pipx-pkgs)
(documentation "Command to install list of pipx packages")
(procedure #~(lambda '(
))))
(services (list
(shepherd-service
(documentation "Install nix packages")
(provision '(nix))
(requirement '(user-processes))
(one-shot? #t)
(actions (list nix-pkgs pipx-pkgs ))))))
|