summaryrefslogtreecommitdiff
path: root/users.nix
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2015-09-30 23:54:10 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2015-09-30 23:54:10 +0200
commit0e65b231bdf860e4e3236bee16b408e11f8c63f9 (patch)
tree3c83903e514f27003566e94d8845b23d2ba49df1 /users.nix
parentb1246799f049c1e0a89cd40d08a436e90e560513 (diff)
downloadnixos-0e65b231bdf860e4e3236bee16b408e11f8c63f9.tar
nixos-0e65b231bdf860e4e3236bee16b408e11f8c63f9.tar.gz
nixos-0e65b231bdf860e4e3236bee16b408e11f8c63f9.tar.bz2
nixos-0e65b231bdf860e4e3236bee16b408e11f8c63f9.tar.xz
nixos-0e65b231bdf860e4e3236bee16b408e11f8c63f9.zip
+mherold
Diffstat (limited to 'users.nix')
-rw-r--r--users.nix9
1 files changed, 6 insertions, 3 deletions
diff --git a/users.nix b/users.nix
index f7be23f4..9c4178af 100644
--- a/users.nix
+++ b/users.nix
@@ -1,10 +1,13 @@
1{config, ...}: 1{config, ...}:
2 2
3let 3let
4 xmppUsers = []; 4 xmppUsers = {
5 "mherold" = import ./users/mherold.nix;
6 };
5in { 7in {
6 users.mutableUsers = false; 8 users.mutableUsers = false;
7 users.defaultUserShell = "/run/current-system/sw/bin/zsh"; 9 users.defaultUserShell = "/run/current-system/sw/bin/zsh";
8 users.extraUsers = builtins.listToAttrs (map (name: { inherit name; value = import (./users/${name}.nix) {}; }) 10 users.extraUsers = {
9 ["gkleen"] ++ (if config.networking.hostName == "ymir" then xmppUsers else [])); 11 "gkleen" = import ./users/gkleen.nix;
12 } // (if config.networking.hostName == "ymir" then xmppUsers else {}));
10} 13}