commit f9f999fdda2610f7a44754a3bcceb9da96e1ba70
parent ec6dba8d03c138ce8aaffee50b18e9200c3480f5
Author: Francesco Saccone <francesco@francescosaccone.com>
Date: Thu, 15 May 2025 09:47:46 +0200
fix: remove security.doas in favour of conflicted nixpkgs option
It just enables the nixpkgs one anyways.
Signed-off-by: Francesco Saccone <francesco@francescosaccone.com>
Diffstat:
3 files changed, 1 insertion(+), 24 deletions(-)
diff --git a/hosts/laptop/default.nix b/hosts/laptop/default.nix
@@ -32,6 +32,7 @@
security = {
doas = {
enable = true;
+ wheelNeedsPassword = true;
};
openssh.agent = {
enable = true;
diff --git a/modules/nixos/default.nix b/modules/nixos/default.nix
@@ -2,7 +2,6 @@
{
imports = [
./bind
- ./doas
./git
./ly
./monero
diff --git a/modules/nixos/doas/default.nix b/modules/nixos/doas/default.nix
@@ -1,23 +0,0 @@
-{
- lib,
- options,
- config,
- pkgs,
- ...
-}:
-{
- options.security.doas = {
- enable = lib.mkOption {
- description = "Whether to enable the doas command.";
- default = false;
- type = lib.types.bool;
- };
- };
-
- config = lib.mkIf config.security.doas.enable {
- security.doas = {
- enable = true;
- wheelNeedsPassword = true;
- };
- };
-}