about summary refs log tree commit diff
path: root/modules
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2021-02-09 15:50:02 +0100
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2021-02-09 15:50:12 +0100
commita0b5ad8d0df2e7d7ab7e49ab4cde40186e982d18 (patch)
treea516407d5a7f72042f1a99693aa1f3862cdc649a /modules
parentccaf9f7f3bc19f42f521aff4a99e882e782353f3 (diff)
downloaddots-a0b5ad8d0df2e7d7ab7e49ab4cde40186e982d18.tar.gz
dots-a0b5ad8d0df2e7d7ab7e49ab4cde40186e982d18.zip
sudo is doas.
Diffstat (limited to 'modules')
-rw-r--r--modules/doas.nix8
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";
+    }])
+  ];
 }