diff options
author | sefidel <contact@sefidel.net> | 2022-01-20 14:42:46 +0900 |
---|---|---|
committer | sefidel <contact@sefidel.net> | 2022-01-20 15:01:34 +0900 |
commit | dc8c63666d0065dd2771c7fa3a897d5c35dd1252 (patch) | |
tree | 26f378afb75d61f1d9b99f490a97fb6866f89ecd | |
parent | 42dba07fb327d2b143aef941d039555833df1e34 (diff) | |
download | nixrc-dc8c63666d0065dd2771c7fa3a897d5c35dd1252.tar.gz nixrc-dc8c63666d0065dd2771c7fa3a897d5c35dd1252.zip |
home/base, nixos/alpha: add doas
-rw-r--r-- | home/profiles/base/default.nix | 11 | ||||
-rw-r--r-- | nixos/alpha/configuration.nix | 2 |
2 files changed, 13 insertions, 0 deletions
diff --git a/home/profiles/base/default.nix b/home/profiles/base/default.nix index 45e8209..8b0b932 100644 --- a/home/profiles/base/default.nix +++ b/home/profiles/base/default.nix @@ -150,6 +150,17 @@ in sha256 = "03r6hpb5fy4yaakqm3lbf4xcvd408r44jgpv4lnzl9asp4sb9qc0"; }; } + + { + name = "doas-zsh-plugin"; + src = pkgs.fetchFromGitHub { + owner = "anatolykopyl"; + repo = "doas-zsh-plugin"; + rev = "17d0b55ca2acd12f7acc9e38c4ecaf413725be18"; + sha256 = "sha256-10rcF9cho9GuZCFQVIdFjvHCAlTLHNaLY4twxjT2jcE="; + }; + file = "doas.plugin.zsh"; + } ]; shellAliases = config.programs.zshell.aliases; diff --git a/nixos/alpha/configuration.nix b/nixos/alpha/configuration.nix index a418841..dddd774 100644 --- a/nixos/alpha/configuration.nix +++ b/nixos/alpha/configuration.nix @@ -6,6 +6,8 @@ security = { protectKernelImage = true; rtkit.enable = true; + doas.enable = true; + doas.wheelNeedsPassword = false; sudo.wheelNeedsPassword = false; }; |