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 = {
|
home.shellAliases = {
|
||||||
# NixOS
|
# NixOS
|
||||||
nhs = "doas nh os switch -R /etc/nixos";
|
nhs = "nh os switch /etc/nixos";
|
||||||
nhu = "flakedate && nhs";
|
|
||||||
nixclean = "nix store gc; nix store optimise";
|
nixclean = "nix store gc; nix store optimise";
|
||||||
nixpurge = "doas nix-collect-garbage --delete-old";
|
nixpurge = "doas nix-collect-garbage --delete-old";
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
{ ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
security = {
|
security = {
|
||||||
sudo.enable = false;
|
sudo.enable = false;
|
||||||
doas = {
|
doas = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extraRules = [
|
extraRules = [
|
||||||
{ # Give wheel root access
|
{ # Specify a timeout period and keep environment variables
|
||||||
groups = [ "wheel" ];
|
groups = [ "wheel" ];
|
||||||
keepEnv = true;
|
keepEnv = true;
|
||||||
persist = true;
|
persist = true;
|
||||||
|
@ -13,4 +13,5 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
environment.systemPackages = with pkgs; [ doas-sudo-shim ];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue