From 6e2578eae0de92e83a8136a956a452e77e786f67 Mon Sep 17 00:00:00 2001 From: sils Date: Fri, 4 Aug 2023 14:32:57 +0200 Subject: Feat(system/users): Add nixremote This user is intended to be used for remote-builds --- system/users/default.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'system/users') diff --git a/system/users/default.nix b/system/users/default.nix index 822c94b..7578126 100644 --- a/system/users/default.nix +++ b/system/users/default.nix @@ -48,6 +48,20 @@ openssh.authorizedKeys.keys = [ ]; }; + nixremote = { + name = "nixremote"; + isSystemUser = true; + createHome = true; + home = "/home/nixremote"; + uid = 1003; + group = "nixremote"; + openssh.authorizedKeys.keys = [ + "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCbSWqFzb+WTq2JVoRGoTkCkP7AM3bNY91bsUBeoQQc8gKAWuqCrpAOmr2Q2QMaTTGEOM0CsWfWLs3ZYtynHmc7wIFc4T/sUloV+dB9oSCmOk5ePxtj8+gpPK35Ja+ug5zmXsaI4s+n9mEbuuEjn33MxDYCUzAI+aWvWe68u/j+FM3u9c3Ta009rotajjSZ/cmIltgNLsG1rnAZRpwmLVg5UL4cb9um54o/NLYFd2KAekQFVbwUQDzzqriZhWmzkfhnznBMDblf9R1xvZ18Lqv3JF21shdaR43NW1wtuntBvAdsVYK2VUEbj+3MxTkK0aQ/E9SHMtH8MRE4oxU74TeTWfIhuSZk9/wekzSNMkHP3ReFC6B9xCMYa+ZqaTaGSWLQi78AQDeM2F9rAfp3hQzyRa7T7qKlgbae/hEb07xZglqmG7eml9vPSt4AHv5Y176Q95NiiWduGoLQOmjvSBMU9/KEGrGKyLfGH1Wa2EOfPxKKcvcHW0Xi9PlPiuP0nYk= root@thinklappi" + ]; + }; + }; + groups.nixremote = { + gid = 1004; }; }; } -- cgit 1.4.1 From e3264768163d603b1d6e28023b5f74239690f035 Mon Sep 17 00:00:00 2001 From: sils Date: Fri, 4 Aug 2023 14:40:28 +0200 Subject: Fix(system/users): declare nixremote as normal user --- system/users/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system/users') diff --git a/system/users/default.nix b/system/users/default.nix index 7578126..06020a6 100644 --- a/system/users/default.nix +++ b/system/users/default.nix @@ -50,7 +50,7 @@ }; nixremote = { name = "nixremote"; - isSystemUser = true; + isNormalUser = true; createHome = true; home = "/home/nixremote"; uid = 1003; -- cgit 1.4.1