add guest user
This commit is contained in:
parent
38ffaa0e29
commit
93f7d38ace
|
@ -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;
|
||||||
|
|
|
@ -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
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