summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2015-07-03 20:05:08 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2015-07-03 20:05:08 +0200
commit05543a4768f029856e2e0e40382a0c4ac3c9dba6 (patch)
treeb7de415ca87479cf727ad5dae819b693946a42bc
parentb36e5224ecbeb6325cb53dfc59ee7728d28b33d8 (diff)
downloadnixos-05543a4768f029856e2e0e40382a0c4ac3c9dba6.tar
nixos-05543a4768f029856e2e0e40382a0c4ac3c9dba6.tar.gz
nixos-05543a4768f029856e2e0e40382a0c4ac3c9dba6.tar.bz2
nixos-05543a4768f029856e2e0e40382a0c4ac3c9dba6.tar.xz
nixos-05543a4768f029856e2e0e40382a0c4ac3c9dba6.zip
Made user config for root@vali more modular
-rw-r--r--vali.nix10
1 files changed, 7 insertions, 3 deletions
diff --git a/vali.nix b/vali.nix
index d0d1d751..067e5acc 100644
--- a/vali.nix
+++ b/vali.nix
@@ -60,7 +60,11 @@
60 # services.xserver.displayManager.kdm.enable = true; 60 # services.xserver.displayManager.kdm.enable = true;
61 # services.xserver.desktopManager.kde4.enable = true; 61 # services.xserver.desktopManager.kde4.enable = true;
62 62
63 users.extraUsers.root.openssh.authorizedKeys.keyFiles = [ 63 let
64 users/keys/gkleen-skadhi.pub 64 template = (import users/gkleen.nix);
65 ]; 65 in
66 users.extraUsers.root = {
67 shell = template.shell;
68 openssh.authorizedKeys.keyFiles = template.openssh.authorizedKeys.keyFiles;
69 };
66} 70}