summary refs log tree commit diff
path: root/nixos/modules/config
diff options
context:
space:
mode:
authornicoo <nicoo@mur.at>2023-09-07 14:55:33 +0000
committernicoo <nicoo@mur.at>2023-09-18 17:36:15 +0000
commit914bf5836974520e6cfd3e687dead3937f6d3db2 (patch)
treedb7a2858e2ec0788eee6203ed1d2f7070da0bf64 /nixos/modules/config
parentf0107b4f63a70925050954f647d14f6e256362d8 (diff)
downloadnixpkgs-914bf5836974520e6cfd3e687dead3937f6d3db2.tar
nixpkgs-914bf5836974520e6cfd3e687dead3937f6d3db2.tar.gz
nixpkgs-914bf5836974520e6cfd3e687dead3937f6d3db2.tar.bz2
nixpkgs-914bf5836974520e6cfd3e687dead3937f6d3db2.tar.lz
nixpkgs-914bf5836974520e6cfd3e687dead3937f6d3db2.tar.xz
nixpkgs-914bf5836974520e6cfd3e687dead3937f6d3db2.tar.zst
nixpkgs-914bf5836974520e6cfd3e687dead3937f6d3db2.zip
nixos/{sudo, terminfo}: Adjust defaults for compatibility with `sudo-rs`
Diffstat (limited to 'nixos/modules/config')
-rw-r--r--nixos/modules/config/terminfo.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/nixos/modules/config/terminfo.nix b/nixos/modules/config/terminfo.nix
index ebd1aaea8f0..d1dbc4e0d05 100644
--- a/nixos/modules/config/terminfo.nix
+++ b/nixos/modules/config/terminfo.nix
@@ -16,7 +16,10 @@ with lib;
     };
 
     security.sudo.keepTerminfo = mkOption {
-      default = true;
+      default = config.security.sudo.package.pname != "sudo-rs";
+      defaultText = literalMD ''
+        `true` unless using `sudo-rs`
+      '';
       type = types.bool;
       description = lib.mdDoc ''
         Whether to preserve the `TERMINFO` and `TERMINFO_DIRS`