Replace sudo with doas
diff --git a/flake.nix b/flake.nix
index cb2a600..f13435b 100644
--- a/flake.nix
+++ b/flake.nix
@@ -24,14 +24,15 @@
           ./modules/node.nix
           ./modules/kitty.nix
           ./modules/tesseract.nix
+          ./modules/doas.nix
           {
-            security.sudo.wheelNeedsPassword = false;
             users.mutableUsers = false;
           }
         ];
       };
 
     deploy.nodes.clicks = {
+      sudo = "doas -u";
       profiles.system = {
         remoteBuild = true;
         user = "root";
diff --git a/modules/doas.nix b/modules/doas.nix
new file mode 100644
index 0000000..ab4303e
--- /dev/null
+++ b/modules/doas.nix
@@ -0,0 +1,11 @@
+{ config, ... }: {
+  security = {
+    doas = {
+      enable = true;
+      wheelNeedsPassword = false;
+    };
+    sudo.enable = false;
+  };
+
+  environment.shellAliases.sudo = "${config.security.wrapperDir}/${config.security.wrappers.doas.program}";
+}