summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--users.nix9
-rw-r--r--users/mherold.nix7
2 files changed, 13 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}
diff --git a/users/mherold.nix b/users/mherold.nix
new file mode 100644
index 00000000..13d0bddb
--- /dev/null
+++ b/users/mherold.nix
@@ -0,0 +1,7 @@
1{
2 name = "mherold";
3 description = "Magdalena Herold";
4 extraGroups = ["xmpp"];
5 group = "users";
6 hashedPassword = "$6$rounds=500000$9PO7z8.b$zJqLUo9rR5p.IKdEbXX.x1OYY0EAx21hE7e18RQ6cNB389or9PSxD841.mIz3nLMVjFOS.p9B5zk7hRdkUHqF1";
7}