diff options
author | lassulus <lass@aidsballs.de> | 2015-07-21 18:57:58 +0200 |
---|---|---|
committer | lassulus <lass@aidsballs.de> | 2015-07-21 19:08:41 +0200 |
commit | 2eb1002f7a47b09b64ae1985642168e9733c92e7 (patch) | |
tree | db10a92c46b3ab462c8e32b1a56914a7920aa49d /2configs/lass | |
parent | 1edc8c249da009e8e99ee4d0f6dce9449ab03c41 (diff) |
1&2 lass: move userconfig to base.nix
Diffstat (limited to '2configs/lass')
-rw-r--r-- | 2configs/lass/base.nix | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/2configs/lass/base.nix b/2configs/lass/base.nix index 5e5b8a7b1..26e6cae51 100644 --- a/2configs/lass/base.nix +++ b/2configs/lass/base.nix @@ -3,14 +3,36 @@ with lib; { imports = [ - ./sshkeys.nix ../../3modules/lass/iptables.nix { users.extraUsers = mapAttrs (_: h: { hashedPassword = h; }) (import /root/src/secrets/hashedPasswords.nix); } - + { + users.extraUsers = { + root = { + openssh.authorizedKeys.keys = map readFile [ + ../../Zpubkeys/lass.ssh.pub + ]; + }; + mainUser = { + name = "lass"; + uid = 1337; + home = "/home/lass"; + group = "users"; + createHome = true; + useDefaultShell = true; + extraGroups = [ + "audio" + "wheel" + ]; + openssh.authorizedKeys.keys = map readFile [ + ../../Zpubkeys/lass.ssh.pub + ]; + }; + }; + } ]; nix.useChroot = true; |