nixos/mobilizon: remove with lib; and unused rec

This commit is contained in:
Niklas Korz 2025-01-16 11:16:38 +01:00
parent 611f4847de
commit 142d7c0f88

View file

@ -5,9 +5,17 @@
... ...
}: }:
with lib;
let let
inherit (lib)
mkEnableOption
mkPackageOption
mkOption
mkDefault
mkIf
types
literalExpression
;
cfg = config.services.mobilizon; cfg = config.services.mobilizon;
user = "mobilizon"; user = "mobilizon";
@ -20,7 +28,7 @@ let
# Make a package containing launchers with the correct envirenment, instead of # Make a package containing launchers with the correct envirenment, instead of
# setting it with systemd services, so that the user can also use them without # setting it with systemd services, so that the user can also use them without
# troubles # troubles
launchers = pkgs.stdenv.mkDerivation rec { launchers = pkgs.stdenv.mkDerivation {
pname = "${cfg.package.pname}-launchers"; pname = "${cfg.package.pname}-launchers";
inherit (cfg.package) version; inherit (cfg.package) version;