1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{
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;
};
};
}