@@ -17,16 +17,16 @@ buildGoModule (finalAttrs: {
1717 webkitgtk_4_1
1818 ] ;
1919 pname = "paretosecurity" ;
20- version = "0.1.9 " ;
20+ version = "0.2.12 " ;
2121
2222 src = fetchFromGitHub {
2323 owner = "ParetoSecurity" ;
2424 repo = "agent" ;
2525 rev = finalAttrs . version ;
26- hash = "sha256-KJs4xC3EtGG4116UE+oIEwAMcuDWIm9gqgZY+Bv14ac =" ;
26+ hash = "sha256-skBxDPC+C8JU1CW6g3SA2C4IawaoPzVi8pdl5BCutUY =" ;
2727 } ;
2828
29- vendorHash = "sha256-3plpvwLe32AsGuVzdM2fSmTPkKwRFmhi651NEIRdOxw =" ;
29+ vendorHash = "sha256-YnyACP/hJYxi4AWMwr0We4YUTbWwahKAIYN6RnHmzls =" ;
3030 proxyVendor = true ;
3131
3232 ldflags = [
@@ -51,6 +51,17 @@ buildGoModule (finalAttrs: {
5151 install -Dm444 ${ finalAttrs . src } /apt/paretosecurity-trayicon.service $out/lib/systemd/user/paretosecurity-trayicon.service
5252 substituteInPlace $out/lib/systemd/user/paretosecurity-trayicon.service \
5353 --replace-fail "/usr/bin/paretosecurity" "$out/bin/paretosecurity"
54+
55+ # Install .desktop files
56+ install -Dm444 ${ finalAttrs . src } /apt/ParetoSecurity.desktop $out/share/applications/ParetoSecurity.desktop
57+ substituteInPlace $out/share/applications/ParetoSecurity.desktop \
58+ --replace-fail "/usr/bin/paretosecurity" "$out/bin/paretosecurity"
59+ install -Dm444 ${ finalAttrs . src } /apt/ParetoSecurityLink.desktop $out/share/applications/ParetoSecurityLink.desktop
60+ substituteInPlace $out/share/applications/ParetoSecurityLink.desktop \
61+ --replace-fail "/usr/bin/paretosecurity" "$out/bin/paretosecurity"
62+
63+ # Install icon
64+ install -Dm444 ${ finalAttrs . src } /assets/icon.png $out/share/icons/hicolor/512x512/apps/ParetoSecurity.png
5465 '' ;
5566
5667 passthru . tests = {
@@ -74,10 +85,11 @@ buildGoModule (finalAttrs: {
7485 root helper that allows you to run the checker in userspace. Some checks
7586 require root permissions, and the checker asks the helper to run those.
7687
77- Additionally, if you enable `services.paretosecurity.trayIcon`, you get a
78- little Vilfredo Pareto living in your systray showing your the current
79- status of checks. This will also enable a systemd timer to update the
80- status of checks once per hour.
88+ Additionally, using the NixOS module gets you a little Vilfredo Pareto
89+ living in your systray showing your the current status of checks. The
90+ NixOS Module also installs a systemd timer to update the status of checks
91+ once per hour. If you want to use just the CLI mode, set
92+ `services.paretosecurity.trayIcon` to `false`.
8193
8294 Finally, you can run `paretosecurity link` to configure the agent
8395 to send the status of checks to https://dash.paretosecurity.com to make
0 commit comments