feat: forgejo test

This commit is contained in:
Nick 2025-01-18 21:31:25 -06:00
parent 19131015db
commit 832ae36ca2
2 changed files with 24 additions and 20 deletions

View file

@ -10,6 +10,7 @@ let
flameshot = "(flameshot)"; flameshot = "(flameshot)";
bitwarden = "(.*Bitwarden.*)"; bitwarden = "(.*Bitwarden.*)";
picture = "(.*Picture-in-Picture.*)"; picture = "(.*Picture-in-Picture.*)";
discord-popout = "(.*Discord Popout.*)";
signal = "(signal)"; signal = "(signal)";
vesktop = "(vesktop)"; vesktop = "(vesktop)";
code = "(code)"; code = "(code)";
@ -29,6 +30,7 @@ let
"maxsize 640 360, class:^${nomacs}$" "maxsize 640 360, class:^${nomacs}$"
"maxsize 800 450, title:^${bitwarden}$" "maxsize 800 450, title:^${bitwarden}$"
"maxsize 720 400, title:^${picture}$" "maxsize 720 400, title:^${picture}$"
"maxsize 720 400, title:^${discord-popout}$"
]; ];
floatWindows = builtins.map (x: "float, " + x) [ floatWindows = builtins.map (x: "float, " + x) [
@ -42,12 +44,14 @@ let
"class:^${flameshot}$" "class:^${flameshot}$"
"class:^${scrcpy}$" "class:^${scrcpy}$"
"title:^(${picture})$" "title:^(${picture})$"
"title:^(${discord-popout})$"
"title:^${bitwarden}$" "title:^${bitwarden}$"
]; ];
pinWindows = builtins.map (x: "pin, " + x) [ pinWindows = builtins.map (x: "pin, " + x) [
"title:^${bitwarden}$" "title:^${bitwarden}$"
"title:^${picture}$" "title:^${picture}$"
"title:^${discord-popout}$"
]; ];
idleInhibit = builtins.map (x: "idleinhibit, " + x) [ idleInhibit = builtins.map (x: "idleinhibit, " + x) [
@ -92,13 +96,13 @@ let
"class:^${vlc}$" "class:^${vlc}$"
]; ];
in in
maxsizeWindows maxsizeWindows
++ floatWindows ++ floatWindows
++ pinWindows ++ pinWindows
++ idleInhibit ++ idleInhibit
++ workspaceInit1 ++ workspaceInit1
++ workspaceInit2 ++ workspaceInit2
++ workspaceInit3 ++ workspaceInit3
++ workspaceInit4 ++ workspaceInit4
++ centerWindows ++ centerWindows
++ opaqueWindows ++ opaqueWindows

View file

@ -92,16 +92,16 @@ in
); );
}; };
# fileSystems."/var/lib/${service.name}" = { fileSystems."/var/lib/${service.name}" = {
# device = service.paths.path0; device = service.paths.path0;
# fsType = "none"; fsType = "none";
# options = [ options = [
# "bind" "bind"
# ]; ];
# depends = [ depends = [
# server.storage0.mount server.storage0.mount
# ]; ];
# }; };
systemd.tmpfiles.rules = [ systemd.tmpfiles.rules = [
"Z ${service.paths.path0} 755 ${service.name} ${service.name} -" "Z ${service.paths.path0} 755 ${service.name} ${service.name} -"