about summary refs log tree commit diff
path: root/machines
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2021-01-28 15:45:21 +0100
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2021-01-28 15:45:21 +0100
commitf3cb97394633f11ebcabc225459c9a5f1745efeb (patch)
treea1a33d11a55705968066419628684228cf00d998 /machines
parent4b607c1bfe3c217deaa79002160faee371bd72f8 (diff)
downloaddots-f3cb97394633f11ebcabc225459c9a5f1745efeb.tar.gz
dots-f3cb97394633f11ebcabc225459c9a5f1745efeb.zip
Add doas module
Diffstat (limited to 'machines')
-rwxr-xr-xmachines/adax/configuration.nix9
-rwxr-xr-xmachines/base.nix1
2 files changed, 1 insertions, 9 deletions
diff --git a/machines/adax/configuration.nix b/machines/adax/configuration.nix
index 5372e8e..388fa60 100755
--- a/machines/adax/configuration.nix
+++ b/machines/adax/configuration.nix
@@ -14,15 +14,6 @@
   environment.systemPackages = with pkgs; [
   ];
 
-  security.sudo.enable = false;
-  security.doas = {
-    enable = true;
-    wheelNeedsPassword = false;
-  };
-  environment.shellAliases = {
-    sudo = "doas";
-  };
-
   # https://sgt.hootr.club/molten-matter/nix-distributed-builds/
   boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
   services.openssh.enable = true;
diff --git a/machines/base.nix b/machines/base.nix
index 209a9ac..b706452 100755
--- a/machines/base.nix
+++ b/machines/base.nix
@@ -6,6 +6,7 @@
   imports = [
     ../modules/nur.nix
     ../users/pn.nix
+    ../modules/doas.nix
     ../modules/internet.nix
   ];