initial commit x2
This commit is contained in:
33
system/user.nix
Normal file
33
system/user.nix
Normal file
@@ -0,0 +1,33 @@
|
||||
{ config, pkgs, ... }: {
|
||||
users.users = {
|
||||
fox = {
|
||||
isNormalUser = true;
|
||||
extraGroups = [ "wheel" "input" "networkmanager" "video" "audio" ];
|
||||
shell = pkgs.zsh;
|
||||
};
|
||||
};
|
||||
services.getty.autologinUser = "fox";
|
||||
environment.loginShellInit = ''
|
||||
[[ "$(tty)" == /dev/tty1 ]] && Hyprland
|
||||
'';
|
||||
security = {
|
||||
polkit = {
|
||||
enable = true;
|
||||
};
|
||||
sudo = {
|
||||
enable = true;
|
||||
extraRules = [{
|
||||
commands = [
|
||||
{
|
||||
command = "${pkgs.systemd}/bin/reboot";
|
||||
options = [ "NOPASSWD" ];
|
||||
}
|
||||
{
|
||||
command = "${pkgs.systemd}/bin/poweroff";
|
||||
options = [ "NOPASSWD" ];
|
||||
}];
|
||||
groups = [ "wheel" ];
|
||||
}];
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user