diff options
author | Nils Gillmann <gillmann@infotropique.org> | 2018-07-05 22:22:23 +0000 |
---|---|---|
committer | Nils Gillmann <gillmann@infotropique.org> | 2018-07-05 22:22:23 +0000 |
commit | 98b47ba801e0856512b5c3ece13a06549665e31d (patch) | |
tree | c0d0b0f650c8225d8077847bbc04f2217ffdef55 | |
parent | 90a5191e27ff79eef930f462acf0a955076163d9 (diff) | |
download | deployment-98b47ba801e0856512b5c3ece13a06549665e31d.tar.gz deployment-98b47ba801e0856512b5c3ece13a06549665e31d.tar.bz2 deployment-98b47ba801e0856512b5c3ece13a06549665e31d.zip |
guix: Add a service for /etc/aliases
Signed-off-by: Nils Gillmann <gillmann@infotropique.org>
-rw-r--r-- | guix/config.scm | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/guix/config.scm b/guix/config.scm index 8c66aa5..baef731 100644 --- a/guix/config.scm +++ b/guix/config.scm @@ -21,6 +21,17 @@ (full-name "Christian Grothoff") (ssh-public-key (local-file "keys/ssh/grothoff.pub"))))) +;;; /etc/aliases +;; this takes the local (repository!) aliases file and copies it to /etc/aliases +;; in the resulting OS. +(define %aliases-etc-service + (simple-service 'etc-/etc/aliases-init + (with-imported-modules '((guix build utils)) + #~(begin + (use-modules (guix build utils)) + (copy-file #$(local-file "../etc/aliases") + "/etc/aliases"))))) + ;;; ;;; The OS definition ;;; |