nixos/services.spice-webdavd: remove with lib;

This commit is contained in:
Felix Buehler 2024-08-30 00:46:48 +02:00
parent e4c0bdd97f
commit 4a435c16d2

View File

@ -1,19 +1,17 @@
{ config, pkgs, lib, ... }:
with lib;
let
cfg = config.services.spice-webdavd;
in
{
options = {
services.spice-webdavd = {
enable = mkEnableOption "the spice guest webdav proxy daemon";
enable = lib.mkEnableOption "the spice guest webdav proxy daemon";
package = mkPackageOption pkgs "phodav" { };
package = lib.mkPackageOption pkgs "phodav" { };
};
};
config = mkIf cfg.enable {
config = lib.mkIf cfg.enable {
# ensure the webdav fs this exposes can actually be mounted
services.davfs2.enable = true;