1
0

hosts/astatine: add guest user

This commit is contained in:
clerie 2023-05-30 17:34:06 +02:00
parent 5270f493b8
commit 4715a5340e
3 changed files with 16 additions and 1 deletions

View File

@ -18,8 +18,10 @@
security.sudo.wheelNeedsPassword = false; security.sudo.wheelNeedsPassword = false;
users.groups.guests = {};
nix.settings = { nix.settings = {
trusted-users = [ "@wheel" ]; trusted-users = [ "@wheel" "@guests" ];
auto-optimise-store = true; auto-optimise-store = true;
}; };

View File

@ -4,6 +4,8 @@
imports = imports =
[ [
./hardware-configuration.nix ./hardware-configuration.nix
./isa.nix
]; ];
boot.kernelParams = [ "console=ttyS0,115200n8" ]; boot.kernelParams = [ "console=ttyS0,115200n8" ];

11
hosts/astatine/isa.nix Normal file
View File

@ -0,0 +1,11 @@
{ ... }:
{
users.users.isa = {
isNormalUser = true;
extraGroups = [ "guests" ];
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGrvhqC/tZzpLMs/qy+1xNSVi2mfn8LXPIEhh7dcGn9e"
];
};
}