about summary refs log tree commit diff
diff options
context:
space:
mode:
-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";
+    }])
+  ];
 }