add guest user
This commit is contained in:
parent
38ffaa0e29
commit
93f7d38ace
|
@ -8,6 +8,7 @@ in {
|
|||
imports = flatten (with tree; [
|
||||
users.root
|
||||
users.chaos
|
||||
users.guest
|
||||
|
||||
(with tree.presets.nixos; [
|
||||
desktopGui
|
||||
|
@ -32,6 +33,15 @@ in {
|
|||
./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 = {
|
||||
enable = true;
|
||||
allowPing = true;
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
"i2c"
|
||||
"kvm"
|
||||
"usbmux"
|
||||
"dialout"
|
||||
];
|
||||
openssh.authorizedKeys.keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEZpvkllLt7HinNpisOx7hWT2br68UoCg0sXKTxHEeUB chaos@chaos"
|
||||
|
|
14
users/guest.nix
Normal file
14
users/guest.nix
Normal file
|
@ -0,0 +1,14 @@
|
|||
{...}: {
|
||||
users.users.guest = {
|
||||
uid = 1001;
|
||||
isNormalUser = true;
|
||||
extraGroups = [
|
||||
"video"
|
||||
"input"
|
||||
"uinput"
|
||||
"audio"
|
||||
"rtkit"
|
||||
"usbmux"
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue