add guest user

This commit is contained in:
chaos 2024-08-02 13:04:16 +01:00
parent 38ffaa0e29
commit 93f7d38ace
No known key found for this signature in database
3 changed files with 25 additions and 0 deletions

View file

@ -8,6 +8,7 @@ in {
imports = flatten (with tree; [ imports = flatten (with tree; [
users.root users.root
users.chaos users.chaos
users.guest
(with tree.presets.nixos; [ (with tree.presets.nixos; [
desktopGui desktopGui
@ -32,6 +33,15 @@ in {
./hardware.nix ./hardware.nix
]); ]);
home-manager.users.guest = {
imports = with tree; [
profiles.home-manager.base
presets.home-manager.gaming
presets.home-manager.guiDesktop
];
home.stateVersion = "24.05";
};
networking.firewall = { networking.firewall = {
enable = true; enable = true;
allowPing = true; allowPing = true;

View file

@ -16,6 +16,7 @@
"i2c" "i2c"
"kvm" "kvm"
"usbmux" "usbmux"
"dialout"
]; ];
openssh.authorizedKeys.keys = [ openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEZpvkllLt7HinNpisOx7hWT2br68UoCg0sXKTxHEeUB chaos@chaos" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEZpvkllLt7HinNpisOx7hWT2br68UoCg0sXKTxHEeUB chaos@chaos"

14
users/guest.nix Normal file
View file

@ -0,0 +1,14 @@
{...}: {
users.users.guest = {
uid = 1001;
isNormalUser = true;
extraGroups = [
"video"
"input"
"uinput"
"audio"
"rtkit"
"usbmux"
];
};
}