summaryrefslogtreecommitdiff
path: root/users
diff options
context:
space:
mode:
Diffstat (limited to 'users')
-rw-r--r--users/gkleen/authorized-keys/gkleen-sif.pub1
-rw-r--r--users/gkleen/default.nix46
-rw-r--r--users/mherold.nix9
-rw-r--r--users/mkleen.nix9
-rw-r--r--users/mwagner.nix9
-rw-r--r--users/root.nix52
-rw-r--r--users/some.nix9
-rw-r--r--users/tkleen.nix9
-rw-r--r--users/vkleen.nix9
9 files changed, 153 insertions, 0 deletions
diff --git a/users/gkleen/authorized-keys/gkleen-sif.pub b/users/gkleen/authorized-keys/gkleen-sif.pub
new file mode 100644
index 00000000..e9aaf215
--- /dev/null
+++ b/users/gkleen/authorized-keys/gkleen-sif.pub
@@ -0,0 +1 @@
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKrHPERae+OUTNOzNf9d2767ljFCm5hgmQw48Dj4RrlU gkleen@sif.midgard.yggdrasil
diff --git a/users/gkleen/default.nix b/users/gkleen/default.nix
new file mode 100644
index 00000000..7cf00b89
--- /dev/null
+++ b/users/gkleen/default.nix
@@ -0,0 +1,46 @@
1{ flake, userName, pkgs, customUtils, lib, ... }:
2{
3 imports = with flake.nixosModules.userProfiles.${userName}; [
4 zsh tmux utils direnv
5 ];
6
7 users.users.${userName} = {
8 description = "Gregor Kleen";
9 extraGroups = [ "wheel" "networkmanager" "lp" "dialout" "audio" "video" "xmpp" "mail" "ssh" "vboxusers" "libvirtd" "wireshark" "games"];
10 createHome = true;
11 home = "/home/${userName}";
12 shell = "${pkgs.zsh}/bin/zsh";
13 isNormalUser = true;
14 openssh.authorizedKeys.keyFiles = let dir = ./authorized-keys; in lib.mapAttrsToList (n: _: dir + "/${n}") (builtins.readDir dir);
15 hashedPassword = "$6$rounds=500000$dOMgCU7DAk$yQFYGOURTEt12387LIYBnFKSWmtwXMUk1LJWnV0m7OFt.y2TnxQn2abdGA5dhwG9EmMB5wZGXf4J5F71c746C/";
16 };
17
18 home-manager.users.${userName} = {
19 programs = {
20 git = {
21 enable = true;
22 userEmail = "gkleen@yggdrasil.li";
23 userName = "Gregor Kleen";
24 delta.enable = true;
25 extraConfig = {
26 pull.rebase = false;
27 submodule.recurse = true;
28 };
29 };
30
31 ssh = {
32 enable = true;
33 controlMaster = "auto";
34 controlPersist = "30m";
35 serverAliveInterval = 6;
36 serverAliveCountMax = 10;
37 hashKnownHosts = true;
38 extraConfig = ''
39 IdentitiesOnly true
40 '';
41 };
42
43 gpg.enable = true;
44 };
45 };
46}
diff --git a/users/mherold.nix b/users/mherold.nix
new file mode 100644
index 00000000..54b11aab
--- /dev/null
+++ b/users/mherold.nix
@@ -0,0 +1,9 @@
1{ userName, ... }:
2{
3 users.users.${userName} = {
4 description = "Magdalena Kleen";
5 extraGroups = ["xmpp" "mail"];
6 hashedPassword = "$6$rounds=500000$y5qNae9r/U/7$HbSrmPcrPl9OQvRFMeo8PDYar32Y1i/C1R5di82rN4PPQZYxg/W.anHSI5Xws6fOQmDtvGsT0lCe4NFNxuTF41";
7 isNormalUser = true;
8 };
9}
diff --git a/users/mkleen.nix b/users/mkleen.nix
new file mode 100644
index 00000000..09e1e618
--- /dev/null
+++ b/users/mkleen.nix
@@ -0,0 +1,9 @@
1{ userName, ... }:
2{
3 users.users.${userName} = {
4 description = "Martin Kleen";
5 extraGroups = ["xmpp"];
6 hashedPassword = "$6$rounds=500000$bBm24zrmoktFD$kGLJA0I9q.jPgLSFej/1aqIyBo/KotXhA0pflByzF5LG/Vw9Vt0yfDvVYEHR6rTplJWYotdYaJXY3b4wnh9n.0";
7 isNormalUser = true;
8 };
9}
diff --git a/users/mwagner.nix b/users/mwagner.nix
new file mode 100644
index 00000000..258b4c32
--- /dev/null
+++ b/users/mwagner.nix
@@ -0,0 +1,9 @@
1{ userName, ... }:
2{
3 users.users.${userName} = {
4 description = "Max Wagner";
5 extraGroups = ["xmpp" "mail"];
6 hashedPassword = "$6$rounds=500000$5l71DQxKPXJ$UDUyiQur9QcmsXrV5r0gD5AWWpsJLe37bhV5NhZMjN4yh5aZjE4uqm8AXemuYTx3kKi.SWaRTglLIVvgDYf5l1";
7 isNormalUser = true;
8 };
9}
diff --git a/users/root.nix b/users/root.nix
new file mode 100644
index 00000000..be331141
--- /dev/null
+++ b/users/root.nix
@@ -0,0 +1,52 @@
1{ flake, lib, config, hostName, userName, pkgs, ... }:
2let
3 haveGKleen = flake.nixosModules.accounts ? "gkleen@${hostName}";
4in {
5 imports = with flake.nixosModules.userProfiles.${userName}; [
6 zsh tmux direnv utils
7 ];
8
9 users.users.${userName} = lib.mkIf haveGKleen {
10 inherit (config.users.users."gkleen") hashedPassword shell;
11 openssh.authorizedKeys.keyFiles = config.users.users."gkleen".openssh.authorizedKeys.keyFiles;
12 };
13
14 home-manager.users.${userName} = {
15 programs = {
16 git = {
17 enable = true;
18 userEmail = "gkleen@yggdrasil.li";
19 userName = "Gregor Kleen";
20 delta.enable = true;
21 extraConfig = {
22 pull.rebase = false;
23 };
24 };
25
26 ssh = {
27 enable = true;
28 controlMaster = "auto";
29 controlPersist = "30m";
30 serverAliveInterval = 6;
31 hashKnownHosts = true;
32 extraConfig = ''
33 IdentitiesOnly true
34 ServerAliveCountMax 10
35 '';
36 };
37
38 gpg.enable = true;
39 };
40
41 services = {
42 gpg-agent = {
43 enable = true;
44 enableSshSupport = true;
45 extraConfig = ''
46 pinentry-program ${pkgs.pinentry-curses}/bin/pinentry
47 grab
48 '';
49 };
50 };
51 };
52}
diff --git a/users/some.nix b/users/some.nix
new file mode 100644
index 00000000..02742e86
--- /dev/null
+++ b/users/some.nix
@@ -0,0 +1,9 @@
1{ userName, ... }:
2{
3 users.users.${userName} = {
4 description = "SomeNights";
5 extraGroups = ["xmpp" "mail"];
6 hashedPassword = "$6$rounds=500000$ZOKcPFUxFCCxbS$PSjgCpHs5GfmmusjTVEBY89NFS.hvY21.iuscfiXW8R.B2UW6ScyrIWWWPJkL4ZfI.6pKwXuf01gxazmDjy251";
7 isNormalUser = true;
8 };
9}
diff --git a/users/tkleen.nix b/users/tkleen.nix
new file mode 100644
index 00000000..debe2138
--- /dev/null
+++ b/users/tkleen.nix
@@ -0,0 +1,9 @@
1{ userName, ... }:
2{
3 users.users.${userName} = {
4 description = "Tatjana Kleen";
5 extraGroups = ["xmpp"];
6 hashedPassword = "$6$rounds=500000$K/MclfEm/LEplrSt$jKakA8dwOggI7ZB5ZwnCHVjvTGw6/VJZGVIlQGmuLoDvz24.pCnrl29xeUGItFhy6vpbjeb9GoG76RwdgI33H/";
7 isNormalUser = true;
8 };
9}
diff --git a/users/vkleen.nix b/users/vkleen.nix
new file mode 100644
index 00000000..e9717816
--- /dev/null
+++ b/users/vkleen.nix
@@ -0,0 +1,9 @@
1{ userName, ... }:
2{
3 users.users.${userName} = {
4 description = "vkleen";
5 extraGroups = ["xmpp"];
6 hashedPassword = "$6$rounds=500000$wOgtkxOshMT$3wT9nRqSCZRr9MkZcDQjMM3YbAekqCxEF0TwYcmjLqUk8Z44jeWQS96H/r3SKCfKWWcIWcQNp/dAxQ/QlcKAv.";
7 isNormalUser = true;
8 };
9}