diff options
| author | Collin Williams <96917990+bluedragon1221@users.noreply.github.com> | 2026-01-23 17:19:40 -0600 |
|---|---|---|
| committer | Collin Williams <96917990+bluedragon1221@users.noreply.github.com> | 2026-01-23 17:19:40 -0600 |
| commit | 3d9b20723ab8b5d61d8db540c34d18c59bf13fa5 (patch) | |
| tree | f420420cbd550dbc3a54eb359429099646760798 /modules/user | |
| parent | 6683e653bf6657055976b7d1a555e922ebcce854 (diff) | |
make run0 optional
Diffstat (limited to 'modules/user')
| -rw-r--r-- | modules/user/nixos/default.nix | 5 | ||||
| -rw-r--r-- | modules/user/options.nix | 4 |
2 files changed, 5 insertions, 4 deletions
diff --git a/modules/user/nixos/default.nix b/modules/user/nixos/default.nix index f9a3940..4edd535 100644 --- a/modules/user/nixos/default.nix +++ b/modules/user/nixos/default.nix @@ -19,9 +19,8 @@ in { # sudo security = { sudo.enable = false; - sudo-rs.enable = false; - - run0.enableSudoAlias = true; + sudo-rs.enable = !cfg.useRun0; + run0.enableSudoAlias = cfg.useRun0; }; time.timeZone = "America/Chicago"; diff --git a/modules/user/options.nix b/modules/user/options.nix index d805bf9..31f166d 100644 --- a/modules/user/options.nix +++ b/modules/user/options.nix @@ -1,5 +1,5 @@ {lib, ...}: let - inherit (lib) mkOption types; + inherit (lib) mkEnableOption mkOption types; in { options = { collinux.user = { @@ -12,6 +12,8 @@ in { type = types.bool; default = true; }; + + useRun0 = mkEnableOption "whether to use systemd's run0 instead of sudo-rs"; }; }; } |
