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 | 5b5e76e21099213758a6b3872b24015f8e33d409 (patch) | |
tree | db10a92c46b3ab462c8e32b1a56914a7920aa49d /1systems | |
parent | ef365a763e5ff4fab039443b7756f27da701b81e (diff) |
1&2 lass: move userconfig to base.nix
Diffstat (limited to '1systems')
-rw-r--r-- | 1systems/lass/mors.nix | 15 | ||||
-rw-r--r-- | 1systems/lass/uriel.nix | 33 |
2 files changed, 10 insertions, 38 deletions
diff --git a/1systems/lass/mors.nix b/1systems/lass/mors.nix index 940dc4f..7e70be8 100644 --- a/1systems/lass/mors.nix +++ b/1systems/lass/mors.nix @@ -168,21 +168,6 @@ ''; }; - users.extraUsers = { - #main user - mainUser = { - uid = 1337; - name = "lass"; - #isNormalUser = true; - group = "users"; - createHome = true; - home = "/home/lass"; - useDefaultShell = true; - isSystemUser = false; - extraGroups = [ "wheel" "audio" ]; - }; - }; - environment.systemPackages = with pkgs; [ ]; diff --git a/1systems/lass/uriel.nix b/1systems/lass/uriel.nix index 25745d0..a5a0833 100644 --- a/1systems/lass/uriel.nix +++ b/1systems/lass/uriel.nix @@ -1,5 +1,6 @@ { config, pkgs, ... }: +with builtins; { imports = [ ../../2configs/lass/desktop-base.nix @@ -30,6 +31,15 @@ enable = true; }; } + { + users.extraUsers = { + root = { + openssh.authorizedKeys.keys = map readFile [ + ../../Zpubkeys/uriel.ssh.pub + ]; + }; + }; + } ]; networking.hostName = "uriel"; @@ -87,29 +97,6 @@ ''; }; - users.extraUsers = { - root = { - openssh.authorizedKeys.keys = [ - config.sshKeys.lass.pub - ]; - }; - mainUser = { - uid = 1337; - name = "lass"; - #isNormalUser = true; - group = "users"; - createHome = true; - home = "/home/lass"; - useDefaultShell = true; - isSystemUser = false; - description = "lassulus"; - extraGroups = [ "wheel" "audio" ]; - openssh.authorizedKeys.keys = [ - config.sshKeys.lass.pub - ]; - }; - }; - environment.systemPackages = with pkgs; [ ]; |