Skip to content

Commit

Permalink
Merge pull request #321242 from onny/davfs2-remove-module
Browse files Browse the repository at this point in the history
nixos/davfs2: Add deprecation notice
  • Loading branch information
Aleksanaa authored Jun 22, 2024
2 parents 17c77e0 + 2eb7209 commit 3247a65
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion nixos/modules/services/network-filesystems/davfs2.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ let
inherit (lib.attrsets) optionalAttrs;
inherit (lib.generators) toINIWithGlobalSection;
inherit (lib.lists) optional;
inherit (lib.modules) mkIf;
inherit (lib.modules) mkIf mkRemovedOptionModule;
inherit (lib.options) literalExpression mkEnableOption mkOption;
inherit (lib.strings) escape;
inherit (lib.types) attrsOf bool int lines oneOf str submodule;
Expand All @@ -27,6 +27,13 @@ let
in
{

imports = [
(mkRemovedOptionModule [ "services" "davfs2" "extraConfig" ] ''
The option extraConfig got removed, please migrate to
services.davfs2.settings instead.
'')
];

options.services.davfs2 = {
enable = mkEnableOption "davfs2";

Expand Down

0 comments on commit 3247a65

Please sign in to comment.