Add the doas shim for compatibility with like, a lot
This commit is contained in:
parent
9d88472a38
commit
adeb1a50ca
2 changed files with 4 additions and 4 deletions
|
@ -2,8 +2,7 @@
|
|||
{
|
||||
home.shellAliases = {
|
||||
# NixOS
|
||||
nhs = "doas nh os switch -R /etc/nixos";
|
||||
nhu = "flakedate && nhs";
|
||||
nhs = "nh os switch /etc/nixos";
|
||||
nixclean = "nix store gc; nix store optimise";
|
||||
nixpurge = "doas nix-collect-garbage --delete-old";
|
||||
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
{ ... }:
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
security = {
|
||||
sudo.enable = false;
|
||||
doas = {
|
||||
enable = true;
|
||||
extraRules = [
|
||||
{ # Give wheel root access
|
||||
{ # Specify a timeout period and keep environment variables
|
||||
groups = [ "wheel" ];
|
||||
keepEnv = true;
|
||||
persist = true;
|
||||
|
@ -13,4 +13,5 @@
|
|||
];
|
||||
};
|
||||
};
|
||||
environment.systemPackages = with pkgs; [ doas-sudo-shim ];
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue