mirror of
https://github.com/nmasur/dotfiles
synced 2025-07-06 07:20:13 +00:00
separate groups and himalaya
This commit is contained in:
@ -1,28 +1,26 @@
|
||||
# Replace sudo with doas
|
||||
|
||||
{ config, ... }: {
|
||||
{ ... }: {
|
||||
|
||||
config = {
|
||||
security = {
|
||||
security = {
|
||||
|
||||
# Remove sudo
|
||||
sudo.enable = false;
|
||||
# Remove sudo
|
||||
sudo.enable = false;
|
||||
|
||||
# Add doas
|
||||
doas = {
|
||||
enable = true;
|
||||
# Add doas
|
||||
doas = {
|
||||
enable = true;
|
||||
|
||||
# No password required
|
||||
wheelNeedsPassword = false;
|
||||
# No password required
|
||||
wheelNeedsPassword = false;
|
||||
|
||||
# Pass environment variables from user to root
|
||||
# Also requires removing password here
|
||||
extraRules = [{
|
||||
groups = [ "wheel" ];
|
||||
noPass = true;
|
||||
keepEnv = true;
|
||||
}];
|
||||
};
|
||||
# Pass environment variables from user to root
|
||||
# Also requires removing password here
|
||||
extraRules = [{
|
||||
groups = [ "wheel" ];
|
||||
noPass = true;
|
||||
keepEnv = true;
|
||||
}];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
@ -9,10 +9,8 @@
|
||||
# Automatically create a password to start
|
||||
initialPassword = "changeme";
|
||||
|
||||
# Enable sudo privileges
|
||||
extraGroups = [
|
||||
"wheel" # Sudo privileges
|
||||
"i2c" # Access to external monitors
|
||||
];
|
||||
|
||||
};
|
||||
|
Reference in New Issue
Block a user