{ config, lib, pkgs, ... }: { options.zpha.programs.librepods.enable = lib.mkEnableOption "librepods"; config = lib.mkIf config.zpha.programs.librepods.enable { users.users.zaphyra.maid = { packages = [ pkgs.zpha.librepods-rust ]; systemd.services.librepods = { after = [ "niri-session.target" ]; partOf = [ "niri-session.target" ]; wantedBy = [ "niri-session.target" ]; environment = lib.mkForce { }; unitConfig.ConditionEnvironment = "WAYLAND_DISPLAY"; serviceConfig = { Restart = "on-failure"; ExecStart = "${lib.getExe pkgs.zpha.librepods-rust} --start-minimized"; }; }; }; zpha.programs.niri.settings.window-rule = lib.singleton { match = lib.singleton { _props.title = "LibrePods$"; }; open-floating = true; default-column-width.proportion = 0.4; default-window-height.proportion = 0.4; background-effect.blur = true; background-effect.xray = false; opacity = 0.75; }; }; }