summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--users.nix4
-rw-r--r--users/gkleen.nix17
-rw-r--r--users/keys/skadhi.pub1
-rw-r--r--vali.nix12
4 files changed, 23 insertions, 11 deletions
diff --git a/users.nix b/users.nix
new file mode 100644
index 00000000..440a115c
--- /dev/null
+++ b/users.nix
@@ -0,0 +1,4 @@
1{
2 users.mutableUsers = false;
3 users.defaultUserShell = "/run/current-system/sw/bin/zsh";
4} // (import ./users/gkleen.nix {})
diff --git a/users/gkleen.nix b/users/gkleen.nix
new file mode 100644
index 00000000..fb505426
--- /dev/null
+++ b/users/gkleen.nix
@@ -0,0 +1,17 @@
1{
2 users.extraUsers.gkleen = {
3 name = "gkleen";
4 description = "Gregor Kleen";
5 extraGroups = [ "wheel" "wlan" "lp" "dialout" ];
6 group = "users";
7 uid = 1000;
8 createHome = true;
9 home = "/home/gkleen";
10 shell = "/run/current-system/sw/bin/zsh";
11 isNormalUser = true;
12 openssh.authorizedKeys.keyFiles = [
13 keys/skadhi.pub
14 ];
15 hashedPassword = "$6$fJbC4zdY$fOdHMAfIZldfE1oYcLN0WflJpD1J4tXjCP21QfjP6R4nVcbYI.bb1AjZftcJtpHvBA/tC5pJXYoaxTRFvwxvA/";
16 };
17}
diff --git a/users/keys/skadhi.pub b/users/keys/skadhi.pub
new file mode 100644
index 00000000..29dfee9e
--- /dev/null
+++ b/users/keys/skadhi.pub
@@ -0,0 +1 @@
ecdsa-sha2-nistp521 AAAAE2VjZHNhLXNoYTItbmlzdHA1MjEAAAAIbmlzdHA1MjEAAACFBABVMu+0txXdxdTSY8POAYVXbuOEDW6VxJzaYwQljc9kzM63VUZuE606R0g2ZGr9A+Gk6qO6fpCiq4SM+1Yygz5yHgGlbO750TOGaTe6KSGw+u3miaeDviejmxTqetGmiJe7BTLRAbYHjRgD5SkK/Ovos0cDSyOfZ5aha/ehox+proQKGA== gkleen@cathy
diff --git a/vali.nix b/vali.nix
index 96095bd7..9478e4cf 100644
--- a/vali.nix
+++ b/vali.nix
@@ -8,6 +8,7 @@
8 imports = 8 imports =
9 [ # Include the results of the hardware scan. 9 [ # Include the results of the hardware scan.
10 ./vali-hw.nix 10 ./vali-hw.nix
11 ./users.nix
11 ]; 12 ];
12 13
13 # Use the GRUB 2 boot loader. 14 # Use the GRUB 2 boot loader.
@@ -59,15 +60,4 @@
59 # services.xserver.displayManager.kdm.enable = true; 60 # services.xserver.displayManager.kdm.enable = true;
60 # services.xserver.desktopManager.kde4.enable = true; 61 # services.xserver.desktopManager.kde4.enable = true;
61 62
62 # Define a user account. Don't forget to set a password with ‘passwd’.
63 users.extraUsers.gkleen = {
64 isNormalUser = true;
65 uid = 1000;
66 name = "gkleen";
67 extraGroups = [ "wheel" ];
68 createHome = true;
69 home = "/home/gkleen";
70 shell = "/run/current-system/sw/bin/zsh";
71 };
72
73} 63}