Skip to content

Commit 0636233

Browse files
committed
fix: make docs make sense with mkEnableOption prepending 'Whether to enable'
1 parent 2649114 commit 0636233

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

flake.nix

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -152,10 +152,10 @@
152152
in
153153
{
154154
options.security = {
155-
polkit.persistentAuthentication = lib.mkEnableOption "patch polkit to allow persistent authentication and add rules";
155+
polkit.persistentAuthentication = lib.mkEnableOption "patching polkit to allow persistent authentication and adding rules";
156156
run0-sudo-shim = {
157-
enable = lib.mkEnableOption "enable run0-sudo-shim instead of sudo";
158-
package = lib.mkPackageOption pkgs "run0-sudo-shim" { } // {
157+
enable = lib.mkEnableOption "run0-sudo-shim instead of sudo";
158+
package = lib.mkPackageOption pkgs "run0-sudo-shim" {} // {
159159
# should be removed when upstreaming to nixpkgs
160160
default = pkgs.run0-sudo-shim or self.packages.${pkgs.stdenv.system}.default;
161161
};
@@ -171,13 +171,11 @@
171171
(lib.mkIf config.security.polkit.persistentAuthentication {
172172
assertions =
173173
let
174-
mkMessage = (
175-
package: minVer: ''
176-
To provide persistent authentication, Polkit requires `pidfd` support when fetching process details from D-Bus, which is only available in `${package}` version ${minVer} or later.
174+
mkMessage = package: minVer: ''
175+
To provide persistent authentication, Polkit requires `pidfd` support when fetching process details from D-Bus, which is only available in `${package}` version ${minVer} or later.
177176
178-
Please update the package or switch `services.dbus.implementation` in the configuration.
179-
''
180-
);
177+
Please update the package or switch `services.dbus.implementation` in the configuration.
178+
'';
181179
in
182180
[
183181
(lib.mkIf (config.services.dbus.implementation == "dbus") {

0 commit comments

Comments
 (0)