summaryrefslogtreecommitdiff
path: root/modules/users
diff options
context:
space:
mode:
authorDevin Finlinson <devin.finlinson@pm.me>2026-04-12 13:51:35 -0600
committerDevin Finlinson <devin.finlinson@pm.me>2026-04-12 13:51:35 -0600
commitfc8c23195504cbad80743705574a204ff9e2136c (patch)
tree51b4acf92c7a1109e28d98c36f69cf318c0e5aea /modules/users
parentb872f84ae1e8ea25c2f8d54215fa8f44e1b858bc (diff)
remote building user for real this time
Diffstat (limited to 'modules/users')
-rw-r--r--modules/users/builder.nix20
-rw-r--r--modules/users/nixremote.nix25
-rw-r--r--modules/users/root.nix2
3 files changed, 26 insertions, 21 deletions
diff --git a/modules/users/builder.nix b/modules/users/builder.nix
deleted file mode 100644
index 6f14510..0000000
--- a/modules/users/builder.nix
+++ /dev/null
@@ -1,20 +0,0 @@
-{ config, pkgs, ... }: {
- users = {
- mutableUsers = false;
- users.builder = {
- isNormalUser = false;
- isSystemUser = true;
- description = "user for automated building";
- extraGroups = [ "builders" ];
-
- openssh.authorizedKeys.keys = [
- "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPLx3RgUgbE7THS7hRZypyudEKffj0ppwQfQuxIpPf8H root@zenbook"
- ];
- };
- };
-
- services.openssh = {
- ports = [ 22 ];
- settings.PasswordAuthenitcation = false;
- };
-}
diff --git a/modules/users/nixremote.nix b/modules/users/nixremote.nix
new file mode 100644
index 0000000..039295f
--- /dev/null
+++ b/modules/users/nixremote.nix
@@ -0,0 +1,25 @@
+{ config, pkgs, ... }: {
+ users = {
+ groups.nixremote = {};
+ mutableUsers = false;
+ users.nixremote = {
+ isNormalUser = true;
+ # createHome = true;
+ homeMode = "500";
+ # isSystemUser = true;
+ description = "user for automated building";
+ group = "nixremote";
+ # extraGroups = [ "builders" ];
+
+ openssh.authorizedKeys.keys = [
+ # "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPLx3RgUgbE7THS7hRZypyudEKffj0ppwQfQuxIpPf8H root@zenbook"
+ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINdxcB4CepjCBKNBGfKcnkrfNMiJAxm+whuQL+dhSxqh root@zenbook"
+ ];
+ };
+ };
+
+ services.openssh = {
+ ports = [ 22 ];
+ settings.PasswordAuthentication = false;
+ };
+}
diff --git a/modules/users/root.nix b/modules/users/root.nix
index 9464651..f826b77 100644
--- a/modules/users/root.nix
+++ b/modules/users/root.nix
@@ -3,7 +3,7 @@
# Define a user account. Don't forget to set a password with 'passwd'.
users = {
users.root = {
- hashedPassword = "$6$UljPNAdxZ22lP3Bc$8VaEAacZxtXM3Zji2IA7Jf5fXs9pFnAVQff1d8IbfFOKCvjibceyopOAjRXa8lXtpOSJgPW1OO1dzOspqhWnz0";
+ hashedPassword = "$y$j9T$YtRkFL3JLAB/zfyr89aFp.$of1IUt84c2i26l6GQWHO2qX0dNiPDZgVGpaNPVyAs24";
};
};
services.openssh.settings.PasswordAuthentication = false;