From e4c0bdd97fe4d166db67ddd1631ddd5ddfa0222a Mon Sep 17 00:00:00 2001 From: Felix Buehler Date: Fri, 30 Aug 2024 00:46:48 +0200 Subject: [PATCH] nixos/services.spice-vdagentd: remove `with lib;` --- nixos/modules/services/misc/spice-vdagentd.nix | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/nixos/modules/services/misc/spice-vdagentd.nix b/nixos/modules/services/misc/spice-vdagentd.nix index 2dd9fcf68ab0..762f9c95b615 100644 --- a/nixos/modules/services/misc/spice-vdagentd.nix +++ b/nixos/modules/services/misc/spice-vdagentd.nix @@ -1,17 +1,15 @@ { config, pkgs, lib, ... }: - -with lib; let cfg = config.services.spice-vdagentd; in { options = { services.spice-vdagentd = { - enable = mkEnableOption "Spice guest vdagent daemon"; + enable = lib.mkEnableOption "Spice guest vdagent daemon"; }; }; - config = mkIf cfg.enable { + config = lib.mkIf cfg.enable { environment.systemPackages = [ pkgs.spice-vdagent ];