diff --git a/modules/programs/distrobox.nix b/modules/programs/distrobox.nix index 722129f2..990c682a 100644 --- a/modules/programs/distrobox.nix +++ b/modules/programs/distrobox.nix @@ -21,9 +21,16 @@ in options.programs.distrobox = { enable = mkEnableOption "distrobox"; - package = mkPackageOption pkgs "distrobox" { }; - + enableSystemdUnit = mkOption { + type = lib.types.bool; + default = true; + example = false; + description = '' + Whatever to enable a Systemd Unit that automatically rebuilds your + containers when changes are detected. + ''; + }; containers = mkOption { type = formatter.type; default = { }; @@ -77,7 +84,7 @@ in formatter.generate "containers.ini" cfg.containers ); - systemd.user.services.distrobox-home-manager = { + systemd.user.services.distrobox-home-manager = mkIf cfg.enableSystemdUnit { Unit.Description = "Build the containers declared in ~/.config/distrobox/containers.ini"; Install.WantedBy = [ "default.target" ];