aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2022-11-22 07:07:51 -0300
committerEuAndreh <eu@euandre.org>2022-11-22 07:07:51 -0300
commit8863fac7a3f4c00ac3cf2dc8b7f0ebee74705157 (patch)
tree385325e9f4baeceea6e1c475b149ef3ec4b96134
parentetc/i3/config: Add calculator to Mod-c (diff)
downloaddotfiles-8863fac7a3f4c00ac3cf2dc8b7f0ebee74705157.tar.gz
dotfiles-8863fac7a3f4c00ac3cf2dc8b7f0ebee74705157.tar.xz
etc/guix/system.scm: Add "whoami" variable
-rw-r--r--etc/guix/system.scm13
1 files changed, 8 insertions, 5 deletions
diff --git a/etc/guix/system.scm b/etc/guix/system.scm
index 50de690..4269ad6 100644
--- a/etc/guix/system.scm
+++ b/etc/guix/system.scm
@@ -26,6 +26,9 @@
(xyz euandreh queue))
(heredoc:enable-syntax)
+(define whoami "andreh")
+
+
(operating-system
(kernel linux)
(initrd microcode-initrd)
@@ -59,7 +62,7 @@
(append
(list
(user-account
- (name "andreh")
+ (name whoami)
(comment "EuAndreh")
(group "users")
(supplementary-groups '("netdev" "audio" "video" "wheel" "kvm" "docker"))))
@@ -113,10 +116,10 @@
(openssh-configuration
(password-authentication? #f)
(authorized-keys
- `(("andreh" ,(local-file
- (string-append (or (getenv "XDG_CONFIG_HOME")
- (string-append (getenv "HOME") "/.ssh"))
- "/ssh/id_rsa.pub")))))
+ `((,whoami ,(local-file
+ (string-append (or (getenv "XDG_CONFIG_HOME")
+ (string-append (getenv "HOME") "/.ssh"))
+ "/ssh/id_rsa.pub")))))
(extra-content #"-
ClientAliveInterval 30
ClientAliveCountMax 20