mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 21:01:34 +01:00
Switch to 4 space indentation
This commit is contained in:
parent
a4cc33577c
commit
d7aed49725
32 changed files with 796 additions and 783 deletions
|
|
@ -1,25 +1,25 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
options.myConfig.doas.enable = lib.mkEnableOption "";
|
||||
options.myConfig.doas.enable = lib.mkEnableOption "";
|
||||
|
||||
config = lib.mkIf config.myConfig.doas.enable {
|
||||
security.sudo.enable = false;
|
||||
config = lib.mkIf config.myConfig.doas.enable {
|
||||
security.sudo.enable = false;
|
||||
|
||||
security.doas = {
|
||||
enable = true;
|
||||
extraRules = [
|
||||
{
|
||||
groups = ["wheel"];
|
||||
keepEnv = true;
|
||||
persist = true;
|
||||
}
|
||||
];
|
||||
security.doas = {
|
||||
enable = true;
|
||||
extraRules = [
|
||||
{
|
||||
groups = ["wheel"];
|
||||
keepEnv = true;
|
||||
persist = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
environment.shellAliases.sudo = "doas";
|
||||
programs.bash.interactiveShellInit = lib.mkIf config.myConfig.shell.bash.enable "complete -F _command doas";
|
||||
};
|
||||
|
||||
environment.shellAliases.sudo = "doas";
|
||||
programs.bash.interactiveShellInit = lib.mkIf config.myConfig.shell.bash.enable "complete -F _command doas";
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue