diff options
author | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2021-02-09 15:50:02 +0100 |
---|---|---|
committer | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2021-02-09 15:50:12 +0100 |
commit | a0b5ad8d0df2e7d7ab7e49ab4cde40186e982d18 (patch) | |
tree | a516407d5a7f72042f1a99693aa1f3862cdc649a | |
parent | ccaf9f7f3bc19f42f521aff4a99e882e782353f3 (diff) | |
download | dots-a0b5ad8d0df2e7d7ab7e49ab4cde40186e982d18.tar.gz dots-a0b5ad8d0df2e7d7ab7e49ab4cde40186e982d18.zip |
sudo is doas.
-rw-r--r-- | modules/doas.nix | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/modules/doas.nix b/modules/doas.nix index bf2ef38..eee5d50 100644 --- a/modules/doas.nix +++ b/modules/doas.nix @@ -1,4 +1,4 @@ -{ pkgs, ... }: +{ config, pkgs, ... }: { security.sudo.enable = false; security.doas = { @@ -15,4 +15,10 @@ environment.shellAliases = { sudo = "doas"; }; + environment.systemPackages = [ + (pkgs.linkFarm "sudo" [ { + name = "bin/sudo"; + path = "${config.security.wrapperDir}/doas"; + }]) + ]; } |