aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2023-03-13 21:03:50 -0300
committerEuAndreh <eu@euandre.org>2023-03-13 21:15:22 -0300
commit98aa808eab87f8a0c5eba55a544e24138ce065d8 (patch)
tree7ec56943c1efef5032a035d94ca43e7e16de2bfa
parentetc/guix/home.scm: Use mailutils-sendmail from personal channel (diff)
downloaddotfiles-98aa808eab87f8a0c5eba55a544e24138ce065d8.tar.gz
dotfiles-98aa808eab87f8a0c5eba55a544e24138ce065d8.tar.xz
etc/guix/system.scm: Add Nix system service
-rwxr-xr-xbin/update2
-rw-r--r--etc/guix/system.scm3
2 files changed, 5 insertions, 0 deletions
diff --git a/bin/update b/bin/update
index 0768f6d..e59aeae 100755
--- a/bin/update
+++ b/bin/update
@@ -68,6 +68,8 @@ if [ -e /etc/nixos/configuration.nix ]; then
pass show "$HOSTNAME"/andreh |
head -n1 |
sudo -S nix-channel --update
+else
+ nix-channel --update
fi
guix pull -v3
diff --git a/etc/guix/system.scm b/etc/guix/system.scm
index 45af71d..6f8389a 100644
--- a/etc/guix/system.scm
+++ b/etc/guix/system.scm
@@ -33,6 +33,7 @@
(gnu services cups)
(gnu services desktop)
(gnu services docker)
+ (gnu services nix)
(gnu services pm)
(gnu services security-token)
(gnu services sound)
@@ -404,6 +405,7 @@ Seiko Epson Color Ink Jet Printers.")
(map (compose list specification->package+output symbol->string)
'(nss-certs
nss-mdns
+ nix
ghc
ghc-xmonad-contrib
xmonad
@@ -421,6 +423,7 @@ Seiko Epson Color Ink Jet Printers.")
(service docker-service-type)
(service libvirt-service-type)
(service virtlog-service-type)
+ (service nix-service-type)
(simple-service 'add-wireguard-aliases hosts-service-type
(list
(host "10.0.0.0" toph)