From 33051c9b1707077d0c589c93ab488c9282fd0878 Mon Sep 17 00:00:00 2001 From: Danilo Reyes Date: Sun, 24 Sep 2023 20:10:54 -0600 Subject: [PATCH] created nixremote user --- workstation/configuration.org | 39 +++++++++++++++++++++++------------ 1 file changed, 26 insertions(+), 13 deletions(-) diff --git a/workstation/configuration.org b/workstation/configuration.org index 5bf6d10..baa6881 100644 --- a/workstation/configuration.org +++ b/workstation/configuration.org @@ -338,19 +338,32 @@ split among my multiple systems, the rest of the groups are self explanatory. #+begin_src nix users = { - groups = { piracy.gid = 985; }; - users.jawz = { - isNormalUser = true; - extraGroups = [ "wheel" "networkmanager" "scanner" - "lp" "piracy" "kavita" "video" "docker" - ]; - initialPassword = "password"; - openssh = { - authorizedKeys.keys = [ - "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIB5GaQM4N+yGAByibOFQOBVMV/6TjOfaGIP+NunMiK76 gpodeacero\cdreyes@100CDREYES" - "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJZ/TtwLIR/JNp1Sr3TLV/eQK52n2htF8sg/RYfz60z3 jawz@server" - ]; + groups = { + piracy.gid = 985; + nixremote.gid = 555; }; + users = { + nixremote = { + isNormalUser = true; + createHome = true; + group = "nixremote"; + home = "/var/nixremote/"; + openssh.authorizedKeys.keys = [ + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIN6HsajaTL+nTJtSIu00M5WJwgt/7fyU59gBr2R7tbnv root@server" + ]; + }; + jawz = { + isNormalUser = true; + extraGroups = [ "wheel" "networkmanager" "scanner" + "lp" "piracy" "kavita" "video" "docker" + ]; + initialPassword = "password"; + openssh = { + authorizedKeys.keys = [ + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIB5GaQM4N+yGAByibOFQOBVMV/6TjOfaGIP+NunMiK76 gpodeacero\cdreyes@100CDREYES" + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJZ/TtwLIR/JNp1Sr3TLV/eQK52n2htF8sg/RYfz60z3 jawz@server" + ]; + }; #+end_src * USER PACKAGES @@ -689,7 +702,7 @@ from the unstable channel. ** CLOSE USER PACKAGES #+begin_src nix -]); }; };# <--- end of package list +]); }; }; };# <--- end of package list #+end_src * HOME-MANAGER