From a0b5ad8d0df2e7d7ab7e49ab4cde40186e982d18 Mon Sep 17 00:00:00 2001 From: Patryk Niedźwiedziński Date: Tue, 9 Feb 2021 15:50:02 +0100 Subject: sudo is doas. --- modules/doas.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'modules') 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"; + }]) + ]; } -- cgit 1.4.1