This commit is contained in:
Lilith 2025-03-24 02:59:38 +01:00
parent 0deecc0aea
commit cd3ca864ab
Signed by: lilith
GPG key ID: 8712A0F317C37175
3 changed files with 2504 additions and 4 deletions

2475
decline Normal file

File diff suppressed because it is too large Load diff

View file

@ -15,6 +15,7 @@
]; ];
trusted-users = [ trusted-users = [
"root" "root"
"nixremote"
"@wheel" "@wheel"
]; ];
@ -28,6 +29,11 @@
system = "x86_64-linux"; system = "x86_64-linux";
protocol = "ssh-ng"; protocol = "ssh-ng";
} }
{
hostName = "lilith-pc";
system = "x86_64-linux";
protocol = "ssh-ng";
}
]; ];
}; };
} }

View file

@ -1,14 +1,28 @@
{ config, ...}: let { config, ... }:
host = config.networking.hostName; let
in { host = config.networking.hostName;
in
{
users.mutableUsers = false; users.mutableUsers = false;
users.users = { users.users = {
lilith = { lilith = {
isNormalUser = true; isNormalUser = true;
uid = 1000; uid = 1000;
extraGroups = [ "wheel" "networkmanager" ]; extraGroups = [
"wheel"
"networkmanager"
];
hashedPasswordFile = config.sops.secrets."user/password".path; hashedPasswordFile = config.sops.secrets."user/password".path;
}; };
remotebuilder = {
isNormalUser = false;
group = "users";
extraGroups = [ ];
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIN7RJ1q5TczmSDge2U2lXrZVtRzOM/D+Bodwrc6h3EjA"
];
};
}; };
sops.secrets = { sops.secrets = {
@ -26,5 +40,10 @@
path = "/home/lilith/.ssh/id_ed25519.pub"; path = "/home/lilith/.ssh/id_ed25519.pub";
owner = "lilith"; owner = "lilith";
}; };
"ssh/nixremote/private" = {
sopsFile = ../../secrets/default.yaml;
path = "/root/.ssh/nixremote";
owner = "root";
};
}; };
} }