diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2015-07-03 18:37:07 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2015-07-03 18:37:07 +0200 |
commit | 76090b81f6bee97d58e4da9d8316be15b44eca82 (patch) | |
tree | 01ba5fea72157e8052b4f62296413e903136a43a | |
parent | c7c060953e40e39caae5105be66fa78d5bf75f5c (diff) | |
download | nixos-76090b81f6bee97d58e4da9d8316be15b44eca82.tar nixos-76090b81f6bee97d58e4da9d8316be15b44eca82.tar.gz nixos-76090b81f6bee97d58e4da9d8316be15b44eca82.tar.bz2 nixos-76090b81f6bee97d58e4da9d8316be15b44eca82.tar.xz nixos-76090b81f6bee97d58e4da9d8316be15b44eca82.zip |
Moved users to saner place
-rw-r--r-- | users.nix | 4 | ||||
-rw-r--r-- | users/gkleen.nix | 17 | ||||
-rw-r--r-- | users/keys/skadhi.pub | 1 | ||||
-rw-r--r-- | vali.nix | 12 |
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 | |||
@@ -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 | } |