diff options
author | tv <tv@krebsco.de> | 2015-11-08 11:53:29 +0100 |
---|---|---|
committer | tv <tv@krebsco.de> | 2015-11-08 11:53:29 +0100 |
commit | daa3a1eb44e77f3c8743ce90fc2d3a2adaa28745 (patch) | |
tree | 82af46c2cf194c254053fa8510e59ebc2ba3b32b /tv/2configs/default.nix | |
parent | f4f6ed72a6de75ae20ba5ec1388a8c71c5a124d8 (diff) |
tv: remove legacy users
Diffstat (limited to 'tv/2configs/default.nix')
-rw-r--r-- | tv/2configs/default.nix | 43 |
1 files changed, 9 insertions, 34 deletions
diff --git a/tv/2configs/default.nix b/tv/2configs/default.nix index d31862b..688f8f9c 100644 --- a/tv/2configs/default.nix +++ b/tv/2configs/default.nix @@ -27,6 +27,7 @@ with lib; networking.hostName = config.krebs.build.host.name; imports = [ + <secrets> ./vim.nix { # stockholm dependencies @@ -35,40 +36,14 @@ with lib; ]; } { - # TODO never put hashedPassword into the store - users.extraUsers = - mapAttrs (_: h: { hashedPassword = h; }) - (import <secrets/hashedPasswords.nix>); - } - { - users.groups.subusers.gid = 1093178926; # genid subusers - } - { - users.defaultUserShell = "/run/current-system/sw/bin/bash"; - users.mutableUsers = false; - } - { - users.extraUsers = { - root = { - openssh.authorizedKeys.keys = [ - config.krebs.users.tv.pubkey - config.krebs.users.tv_xu.pubkey - ]; - }; - tv = { - uid = 1337; - group = "users"; - home = "/home/tv"; - createHome = true; - useDefaultShell = true; - extraGroups = [ - "audio" - "video" - "wheel" - ]; - openssh.authorizedKeys.keys = [ - config.krebs.users.tv.pubkey - ]; + users = { + defaultUserShell = "/run/current-system/sw/bin/bash"; + mutableUsers = false; + users = { + tv = { + isNormalUser = true; + uid = 1337; + }; }; }; } |