Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
181 commits
Select commit Hold shift + click to select a range
efe8bac
fmit: remove with lib
0xda157 Jun 26, 2025
e43bb60
fmit: use finalAttrs
0xda157 Jun 26, 2025
b85e45c
fmit: use callPackage
0xda157 Jun 26, 2025
601b789
fmit: move to by-name
0xda157 Jun 26, 2025
26c5111
treewide: Correctly force Java font anti-aliasing to gasp mode
opl- Jul 3, 2025
2ddba32
dwm-status: migrate to `pkgs/by-name`
acid-bong Jul 12, 2025
9b22282
dwm-status: replace `rec` with `finalAttrs`
acid-bong Jul 12, 2025
2f33573
dmenu{,-wayland}: migrate to `pkgs/by-name`
acid-bong Jul 12, 2025
86fe255
dmenu-wayland: modernize
acid-bong Jul 12, 2025
3762fdd
dmenu: allow setting options in nixpkgs.config
acid-bong Jul 12, 2025
2a48fed
dmenu: remove pkg-config
acid-bong Jul 12, 2025
1a1cc62
dmenu: remove unused zlib
acid-bong Jul 12, 2025
6db8833
dmenu: modernize
acid-bong Jul 12, 2025
7e06a7c
st: move nixpkgs.config options inside the recipe
acid-bong Jul 12, 2025
593f273
{mcaimi-,x,}st: move to pkgs/by-name
acid-bong Jul 12, 2025
f559452
mcaimi-st: update meta.homepage, modernize
acid-bong Jul 12, 2025
f89c42f
mcaimi-st: add update script
acid-bong Jul 12, 2025
b3cb8b7
mcaimi-st: 0-unstable-2021-08-30 -> 0-unstable-2025-03-12
acid-bong Jul 12, 2025
fab0654
mcaimi-st: set installFlags the Nix way
acid-bong Jul 12, 2025
9810b36
xst: modernize
acid-bong Jul 12, 2025
7f58a90
xst: set installFlags the Nix way
acid-bong Jul 12, 2025
d01eaee
xst: add update script
acid-bong Jul 12, 2025
28ae06f
st: modernize
acid-bong Jul 12, 2025
df0a8d3
dwm: move `nixpkgs.config` logic inside the recipe
acid-bong Jul 13, 2025
8fb8dc8
dwm: move to pkgs/by-name
acid-bong Jul 13, 2025
051dd77
dwm: take PREFIX and CC from environment
acid-bong Jul 13, 2025
8764e26
dwm: modernize
acid-bong Jul 13, 2025
ed4163c
libstaden-read: 1.15.0 -> 1-15-1
r-ryantm Jul 14, 2025
e5c7114
gazelle-origin: migrate to by-name
guylamar2006 Jul 17, 2025
5f36419
gazelle-origin: refactor meta section and dependencies
guylamar2006 Jul 17, 2025
3e1ac8b
nixos/tests/owi: init
ethancedwards8 Jul 17, 2025
ca88da9
nixos/searx: use envsubst instead of sed for reading environment vari…
codebam Jul 6, 2025
8900b9d
wordpress: 6.8.1 -> 6.8.2
r-ryantm Jul 18, 2025
b9e2499
compare50: init at 1.2.6
ethancedwards8 May 30, 2025
5859e33
python3Packages.fenics-dolfinx: remove nativeCheckInputs pytest-xdist
qbisi Jul 21, 2025
141d859
hovercraft: migrate to by-name
guylamar2006 Jul 17, 2025
611b821
hovercraft: refactor package definitions
guylamar2006 Jul 17, 2025
b5638f2
hovercraft: remove toplevel
guylamar2006 Jul 21, 2025
f7076e9
bun: 1.2.18 -> 1.2.19
MisileLab Jul 22, 2025
4dd3a87
nixosTests.omnom: test snapshot workflow
Prince213 Jul 17, 2025
551b9d2
nixosTests.omnom: split config
Prince213 Jul 22, 2025
1d47e29
nixosTests.omnom: use package maintainers
Prince213 Jul 22, 2025
a84b337
flannel: 0.27.1 -> 0.27.2
r-ryantm Jul 22, 2025
6e40190
bee: 2.5.0 -> 2.6.0
r-ryantm Jul 22, 2025
67099ae
golangci-lint: 2.2.2 -> 2.3.0
SuperSandro2000 Jul 22, 2025
5959e69
iio-sensor-proxy: Fix on cros-ec devices (e.g. Framework 12)
JohnAZoidberg Jul 22, 2025
ed8c478
vscode-extensions.sonarsource.sonarlint-vscode: 4.26.0 -> 4.27.0
r-ryantm Jul 22, 2025
e014b5e
instaloader: 4.14.1 -> 4.14.2
r-ryantm Jul 22, 2025
b0fc2fc
abiword: unpin autotools
wegank Jul 22, 2025
1fd6b7a
filebeat8: 8.18.3 -> 8.18.4
r-ryantm Jul 22, 2025
57086d0
varnish60Packages.dynamic: unpin autotools
wegank Jul 22, 2025
80fe20d
python313Packages.tencentcloud-sdk-python: 3.0.1425 -> 3.0.1427
fabaff Jul 22, 2025
ee9e760
terraform-providers.aiven: 4.42.0 -> 4.43.0
r-ryantm Jul 22, 2025
c0eba01
python313Packages.slack-sdk: 3.35.0 -> 3.36.0
fabaff Jul 22, 2025
af809fa
python313Packages.aioairzone-cloud: 0.6.12 -> 0.6.16
fabaff Jul 22, 2025
1620466
babeltrace2: 2.1.1 -> 2.1.2
r-ryantm Jul 22, 2025
e63ab40
vscode-extensions.gitlab.gitlab-workflow: 6.33.2 -> 6.35.0
r-ryantm Jul 22, 2025
1798bf4
alt-tab-macos: 7.24.0 -> 7.25.0
FlameFlag Jul 22, 2025
3f9849a
pocketbase: 0.28.4 -> 0.29.0
r-ryantm Jul 22, 2025
80cea32
heimdal: unpin autotools
wegank Jul 22, 2025
d9972f8
alacritty-theme: 0-unstable-2025-05-15 -> 0-unstable-2025-07-16
r-ryantm Jul 22, 2025
dd1f09a
fishPlugins.exercism-cli-fish-wrapper: 0-unstable-2025-06-27 -> 0-uns…
r-ryantm Jul 22, 2025
b6b021a
copybara: 20250714 -> 20250721
r-ryantm Jul 23, 2025
a0333ea
capnproto-rust: 0.21.1 -> 0.21.2
r-ryantm Jul 23, 2025
62d494e
kafkactl: 5.10.1 -> 5.11.0
r-ryantm Jul 23, 2025
b6e69bc
wait4x: 3.4.0 -> 3.5.0
r-ryantm Jul 23, 2025
260d2c6
python3Packages.pyshp: 2.3.1 -> 2.4.0
r-ryantm Jul 23, 2025
59fb421
terraform-providers.sentry: 0.14.5 -> 0.14.6
r-ryantm Jul 23, 2025
b701661
_1password-gui: 8.11.0 -> 8.11.2
bdd Jul 23, 2025
049594d
_1password-gui: update.sh improvements
bdd Jul 23, 2025
b71a2ec
vencord: 1.12.6 -> 1.12.7
Gliczy Jul 23, 2025
abdfcc5
orchard: 0.36.0 -> 0.37.0
r-ryantm Jul 23, 2025
b22e2eb
particle-cli: 3.38.1 -> 3.38.2
r-ryantm Jul 23, 2025
b433a73
fswatch: unpin autotools
wegank Jul 23, 2025
478adb8
python3Packages.symfc: 1.3.3 -> 1.5.4
GaetanLepage Jul 23, 2025
8b7d929
models-dev: 0-unstable-2025-07-16 -> 0-unstable-2025-07-23
r-ryantm Jul 23, 2025
9e46bf1
azure-cli-extensions.confcom: 1.2.1 -> 1.2.6
miampf Jul 23, 2025
dc0acd4
gocryptfs: 2.5.4 -> 2.6.0
r-ryantm Jul 23, 2025
1e1803c
go-licence-detector: 0.9.0 -> 0.9.1
SuperSandro2000 Jul 23, 2025
8974d3a
quantlib: 1.38 -> 1.39
r-ryantm Jul 23, 2025
a69e41e
duff: unpin autotools
wegank Jul 23, 2025
3235cf0
eid-mw: unpin autotools
wegank Jul 23, 2025
5028ddb
gsmlib: unpin autotools
wegank Jul 23, 2025
e0ee93f
python3Packages.aioairzone-cloud: 0.6.12 -> 0.6.16
r-ryantm Jul 23, 2025
ff6fe0f
lockbook: 0.9.22 --> 0.9.25
Parth Jul 23, 2025
0bbe53d
lanzaboote-tool: Remove
ElvishJerricco Jul 23, 2025
1893948
brave: 1.80.122 -> 1.80.124
buckley310 Jul 23, 2025
b24f9ea
lockbook-desktop: 0.9.24 -> 0.9.25
Parth Jul 23, 2025
5ed2c14
python313Packages.model-checker: 0.9.26 -> 0.9.28
fabaff Jul 23, 2025
af13aca
python3Packages.aioairzone-cloud: 0.6.12 -> 0.6.16 (#427786)
fabaff Jul 23, 2025
3a2db73
python313Packages.tencentcloud-sdk-python: 3.0.1425 -> 3.0.1427 (#427…
fabaff Jul 23, 2025
2ca95c8
treewide: Correctly force Java font anti-aliasing to gasp mode (#422045)
philiptaron Jul 23, 2025
938439c
python313Packages.model-checker: 0.9.26 -> 0.9.28 (#427822)
fabaff Jul 23, 2025
c954904
orchard: 0.36.0 -> 0.37.0 (#427677)
nixpkgs-merge-bot[bot] Jul 23, 2025
f2917c1
libstaden-read: 1.15.0 -> 1-15-1 (#425193)
nixpkgs-merge-bot[bot] Jul 23, 2025
d58c6f6
vencord: 1.12.6 -> 1.12.7 (#427664)
Scrumplex Jul 23, 2025
7d1ccea
python313Packages.aioairzone-cloud: 0.6.12 -> 0.6.16 (#427559)
fabaff Jul 23, 2025
7eb5e7e
lanzaboote-tool: Remove (#427792)
ElvishJerricco Jul 23, 2025
b4ec100
steampipePackages.steampipe-plugin-aws: 1.17.0 -> 1.19.0
r-ryantm Jul 22, 2025
a2635ae
python3Packages.python-novaclient: 18.9.0 -> 18.10.0
r-ryantm Jul 12, 2025
348368c
python3Packages.torchmetrics: 1.7.4 -> 1.8.0
GaetanLepage Jul 23, 2025
e3f7c9d
models-dev: 0-unstable-2025-07-16 -> 0-unstable-2025-07-23 (#427719)
nixpkgs-merge-bot[bot] Jul 23, 2025
d1173a3
tomcat9: 9.0.106 -> 9.0.107
LeSuisse Jul 11, 2025
82aed1e
tomcat11: 11.0.8 -> 11.0.9
LeSuisse Jul 11, 2025
c85b8c4
opencode: 3.51 -> 3.58
delafthi Jul 23, 2025
0b1374a
r10k: 4.1.0 -> 5.0.0
guylamar2006 May 27, 2025
191a9db
azure-cli-extensions.confcom: 1.2.1 -> 1.2.6 (#427731)
katexochen Jul 23, 2025
dd47ce1
quantlib: 1.38 -> 1.39 (#427743)
nixpkgs-merge-bot[bot] Jul 23, 2025
693750a
python3Packages.pyvips: 2.2.3 -> 3.0.0
Ramblurr May 30, 2025
37a9e6a
solanum: 0-unstable-2025-06-11 -> 0-unstable-2025-07-20
r-ryantm Jul 23, 2025
b802a0a
_1password-gui-beta: 8.11.2-18.BETA -> 8.11.4-21.BETA
bdd Jul 23, 2025
d9a77dd
_1password-gui: update.sh improvements (#427655)
khaneliman Jul 23, 2025
e5fc4cb
golangci-lint: 2.2.2 -> 2.3.0 (#427472)
NickCao Jul 23, 2025
396852c
bee: 2.5.0 -> 2.6.0 (#427470)
NickCao Jul 23, 2025
5a57272
flannel: 0.27.1 -> 0.27.2 (#427458)
NickCao Jul 23, 2025
b6b5eae
iio-sensor-proxy: Fix on cros-ec devices (e.g. Framework 12) (#427476)
Mic92 Jul 23, 2025
7659863
python313Packages.slack-sdk: 3.35.0 -> 3.36.0 (#427557)
NickCao Jul 23, 2025
801485e
terraform-providers.aiven: 4.42.0 -> 4.43.0 (#427553)
NickCao Jul 23, 2025
ff12017
filebeat8: 8.18.3 -> 8.18.4 (#427552)
NickCao Jul 23, 2025
2e7f98d
nixos/searx: use envsubst instead of sed for reading environment vari…
rnhmjoj Jul 23, 2025
ae006ef
varnish60Packages.dynamic: unpin autotools (#427550)
NickCao Jul 23, 2025
622323a
instaloader: 4.14.1 -> 4.14.2 (#427549)
NickCao Jul 23, 2025
9e21e59
abiword: unpin autotools (#427545)
NickCao Jul 23, 2025
5f04673
solanum: 0-unstable-2025-06-11 -> 0-unstable-2025-07-20 (#427850)
mweinelt Jul 23, 2025
70d1885
vscode-extensions.sonarsource.sonarlint-vscode: 4.26.0 -> 4.27.0 (#42…
NickCao Jul 23, 2025
1207f22
fishPlugins.exercism-cli-fish-wrapper: 0-unstable-2025-06-27 -> 0-uns…
NickCao Jul 23, 2025
386a357
alacritty-theme: 0-unstable-2025-05-15 -> 0-unstable-2025-07-16 (#427…
NickCao Jul 23, 2025
84ed677
heimdal: unpin autotools (#427571)
NickCao Jul 23, 2025
733e54c
pocketbase: 0.28.4 -> 0.29.0 (#427569)
NickCao Jul 23, 2025
0c9398e
mastodon: 4.4.1 -> 4.4.2
erictapen Jul 23, 2025
1af1ad5
vscode-extensions.gitlab.gitlab-workflow: 6.33.2 -> 6.35.0 (#427566)
NickCao Jul 23, 2025
d5c6c0a
alt-tab-macos: 7.24.0 -> 7.25.0 (#427564)
NickCao Jul 23, 2025
721a5f0
babeltrace2: 2.1.1 -> 2.1.2 (#427563)
NickCao Jul 23, 2025
af6c309
terraform-providers.sentry: 0.14.5 -> 0.14.6 (#427642)
NickCao Jul 23, 2025
73cdcc3
lockbook: 0.9.22 -> 0.9.25 (#427796)
wolfgangwalther Jul 23, 2025
b7d0c7b
lockbook-desktop: 0.9.24 -> 0.9.25 (#427801)
wolfgangwalther Jul 23, 2025
c79b2a4
python3Packages.pyshp: 2.3.1 -> 2.4.0 (#427640)
NickCao Jul 23, 2025
ff4cab4
_1password-gui: 8.11.0 -> 8.11.2 (#427644)
khaneliman Jul 23, 2025
0cf46f7
wait4x: 3.4.0 -> 3.5.0 (#427634)
NickCao Jul 23, 2025
86f7a4f
kafkactl: 5.10.1 -> 5.11.0 (#427632)
NickCao Jul 23, 2025
29807ba
capnproto-rust: 0.21.1 -> 0.21.2 (#427629)
NickCao Jul 23, 2025
4ba0ebe
copybara: 20250714 -> 20250721 (#427618)
NickCao Jul 23, 2025
067e9e2
nixos/tests/owi: init (#426120)
phaer Jul 23, 2025
458368f
sdl_gamecontrollerdb: 0-unstable-2025-07-10 -> 0-unstable-2025-07-18
r-ryantm Jul 23, 2025
b0aeb7b
nixosTests.omnom: test snapshot workflow (#426121)
OPNA2608 Jul 23, 2025
e88fc16
tor-browser: 14.5.4 -> 14.5.5
felschr Jul 23, 2025
ca97a99
mullvad-browser: 14.5.4 -> 14.5.5
felschr Jul 23, 2025
a331dc0
fswatch: unpin autotools (#427699)
wegank Jul 23, 2025
cbc293d
python3Packages.symfc: 1.3.3 -> 1.5.4 (#427707)
GaetanLepage Jul 23, 2025
76c4605
koto: 0.15.3 -> 0.16.0
Defelo Jul 23, 2025
efba5cc
koto-ls: 0.15.3 -> 0.16.0
Defelo Jul 23, 2025
5426807
eid-mw: unpin autotools (#427763)
wegank Jul 23, 2025
ef1cce8
duff: unpin autotools (#427762)
wegank Jul 23, 2025
704391c
compare50: init at 1.2.6 (#412432)
GaetanLepage Jul 23, 2025
183b32a
bun: 1.2.18 -> 1.2.19 (#427428)
wegank Jul 23, 2025
6f2e246
opencode: 3.51 -> 3.58 (#427839)
GaetanLepage Jul 23, 2025
e0921b1
gocryptfs: 2.5.4 -> 2.6.0 (#427728)
prusnak Jul 23, 2025
924ab7b
koto{,-ls}: 0.15.3 -> 0.16.0 (#427820)
Defelo Jul 23, 2025
fea8c08
particle-cli: 3.38.1 -> 3.38.2 (#427696)
nixpkgs-merge-bot[bot] Jul 23, 2025
c93d5c0
fmit: modernize, move to by-name (#420308)
wegank Jul 23, 2025
31c1369
instaloader: migrate to by-name
guylamar2006 Jul 14, 2025
90208f0
gazelle-origin: migrate to by-name (#425538)
wegank Jul 23, 2025
81521bc
hovercraft: migrate to by-name (#426119)
wegank Jul 23, 2025
2ff78b3
brave: 1.80.122 -> 1.80.124 (#427803)
matteo-pacini Jul 23, 2025
7ef7982
python3Packages.fenics-dolfinx: remove nativeCheckInputs pytest-xdist…
NickCao Jul 23, 2025
83ab293
python3Packages.nitransforms: 24.1.2 -> 25.0.0
r-ryantm Jul 23, 2025
16729c5
go-licence-detector: 0.9.0 -> 0.9.1 (#427733)
NickCao Jul 23, 2025
6290b93
python3Packages.torchmetrics: 1.7.4 -> 1.8.0 (#427836)
GaetanLepage Jul 23, 2025
93022fe
instaloader: migrate to by-name (#425127)
wegank Jul 23, 2025
ec52fb3
p4est-sc: 0-unstable-2021-06-14 -> 2.8.7
qbisi Jul 7, 2025
556cd7c
p4est: 0-unstable-2021-06-22 -> 2.8.7
qbisi Jun 9, 2025
126496d
gsmlib: unpin autotools (#427764)
wegank Jul 24, 2025
e48d125
nixos/tlsrpt: fix permissions for postfix
mweinelt Jul 24, 2025
5a456c6
dwm{,-status}, dmenu{,-wayland}, st (+ forks): move to `by-name`, ref…
wegank Jul 24, 2025
9c70a28
wordpress: 6.8.1 -> 6.8.2 (#426399)
wegank Jul 24, 2025
2df20e4
{tor,mullvad}-browser: 14.5.4 -> 14.5.5 (#427884)
felschr Jul 24, 2025
dddbe55
sdl_gamecontrollerdb: 0-unstable-2025-07-10 -> 0-unstable-2025-07-18 …
nixpkgs-merge-bot[bot] Jul 24, 2025
070e7cc
nixos/tlsrpt: fix permissions for postfix (#427915)
mweinelt Jul 24, 2025
8732e1e
python3Packages.nitransforms: 24.1.2 -> 25.0.0 (#427636)
NickCao Jul 24, 2025
b5a820d
p4est: 0-unstable-2021-06-22 -> 2.8.7 (#415439)
NickCao Jul 24, 2025
d4b59c4
WIP 6.4.1 bump
LunNova Jun 18, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions doc/release-notes/rl-2511.section.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@

- `meta.mainProgram`: Changing this `meta` entry can lead to a package rebuild due to being used to determine the `NIX_MAIN_PROGRAM` environment variable.

- `searx` was updated to use `envsubst` instead of `sed` for parsing secrets from environment variables.
If your previous configuration included a secret reference like `server.secret_key = "@SEARX_SECRET_KEY@"`, you must migrate to the new envsubst syntax: `server.secret_key = "$SEARX_SECRET_KEY"`.

- `versionCheckHook`: Packages that previously relied solely on `pname` to locate the program used to version check, but have a differing `meta.mainProgram` entry, might now fail.


Expand Down
14 changes: 11 additions & 3 deletions nixos/modules/services/mail/tlsrpt.nix
Original file line number Diff line number Diff line change
Expand Up @@ -270,9 +270,17 @@ in
};
};

systemd.services.postfix.serviceConfig.SupplementaryGroups = mkIf (
config.services.postfix.enable && cfg.collectd.configurePostfix
) [ "tlsrpt" ];
users.users.tlsrpt = {
isSystemUser = true;
group = "tlsrpt";
};
users.groups.tlsrpt = { };

users.users.postfix.extraGroups =
lib.mkIf (config.services.postfix.enable && cfg.collectd.configurePostfix)
[
"tlsrpt"
];

systemd.services.tlsrpt-collectd = {
description = "TLSRPT datagram collector";
Expand Down
17 changes: 6 additions & 11 deletions nixos/modules/services/networking/searx.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,8 @@ let
# write NixOS settings as JSON
(
umask 077
cp --no-preserve=mode ${settingsFile} settings.yml
${pkgs.envsubst}/bin/envsubst < ${settingsFile} > settings.yml
)

# substitute environment variables
env -0 | while IFS='=' read -r -d ''' n v; do
sed "s#@$n@#$v#g" -i settings.yml
done
'';

settingType =
Expand Down Expand Up @@ -95,20 +90,20 @@ in
{
server.port = 8080;
server.bind_address = "0.0.0.0";
server.secret_key = "@SEARX_SECRET_KEY@";
server.secret_key = "$SEARX_SECRET_KEY";

engines = lib.singleton {
engines = [ {
name = "wolframalpha";
shortcut = "wa";
api_key = "@WOLFRAM_API_KEY@";
api_key = "$WOLFRAM_API_KEY";
engine = "wolframalpha_api";
};
} ];
}
'';
description = ''
Searx settings.
These will be merged with (taking precedence over) the default configuration.
It's also possible to refer to environment variables (defined in [](#opt-services.searx.environmentFile)) using the syntax `@VARIABLE_NAME@`.
It's also possible to refer to environment variables (defined in [](#opt-services.searx.environmentFile)) using the syntax `$VARIABLE_NAME`.

::: {.note}
For available settings, see the Searx [docs](https://docs.searxng.org/admin/settings/index.html).
Expand Down
3 changes: 2 additions & 1 deletion nixos/tests/all-tests.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1061,7 +1061,7 @@ in
ollama-cuda = runTestOn [ "x86_64-linux" "aarch64-linux" ] ./ollama-cuda.nix;
ollama-rocm = runTestOn [ "x86_64-linux" "aarch64-linux" ] ./ollama-rocm.nix;
ombi = runTest ./ombi.nix;
omnom = runTest ./omnom.nix;
omnom = runTest ./omnom;
openarena = runTest ./openarena.nix;
openbao = runTest ./openbao.nix;
opencloud = runTest ./opencloud.nix;
Expand All @@ -1082,6 +1082,7 @@ in
open-web-calendar = runTest ./web-apps/open-web-calendar.nix;
ocsinventory-agent = handleTestOn [ "x86_64-linux" "aarch64-linux" ] ./ocsinventory-agent.nix { };
orthanc = runTest ./orthanc.nix;
owi = runTest ./owi.nix;
owncast = runTest ./owncast.nix;
outline = runTest ./outline.nix;
i18n = runTest ./i18n.nix;
Expand Down
42 changes: 0 additions & 42 deletions nixos/tests/omnom.nix

This file was deleted.

36 changes: 36 additions & 0 deletions nixos/tests/omnom/config.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{ config, pkgs, ... }:
{
services.omnom = {
enable = true;
openFirewall = true;

port = 9090;

settings = {
app = {
disable_signup = false; # restrict CLI user-creation
results_per_page = 50;
};
server.address = "0.0.0.0:${toString config.services.omnom.port}";
};
};

programs.firefox = {
enable = true;
# librewolf allows installations of unsigned extensions
package = pkgs.wrapFirefox pkgs.librewolf-unwrapped {
nixExtensions = [
(
let
# specified in manifest.json of the addon
extid = "{f0bca7ce-0cda-41dc-9ea8-126a50fed280}";
in
pkgs.runCommand "omnom" { passthru = { inherit extid; }; } ''
mkdir -p $out
cp ${pkgs.omnom}/share/addons/omnom_ext_firefox.zip $out/${extid}.xpi
''
)
];
};
};
}
105 changes: 105 additions & 0 deletions nixos/tests/omnom/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
{ config, pkgs, ... }:
{
name = "Basic Omnom Test";
meta = {
inherit (pkgs.omnom.meta) maintainers;
};

nodes = {
server =
{ pkgs, ... }:
{
imports = [
../common/x11.nix
./config.nix
];

environment.systemPackages = [ pkgs.xdotool ];
};
};

testScript =
let
port = toString config.nodes.server.services.omnom.port;
in
# python
''
import re

def open_omnom():
# Add-ons Manager
server.succeed("xdotool mousemove --sync 960 90 click 1")
server.sleep(10)
# omnom
server.succeed("xdotool mousemove --sync 700 190 click 1")
server.sleep(10)


service_url = "http://127.0.0.1:${toString port}"

server.start()
server.wait_for_unit("omnom.service")
server.wait_for_open_port(${toString port})
server.succeed(f"curl -sf '{service_url}'")

output = server.succeed("omnom create-user user [email protected]")
match = re.search(r"Visit (.+?) to sign in", output)
assert match is not None, "Login URL not found"
login_url = match[1].replace("0.0.0.0", "127.0.0.1")

output = server.succeed("omnom create-token user addon")
match = re.search(r"Token (.+?) created", output)
assert match is not None, "Addon token not found"
token = match[1]

server.wait_for_x()
server.succeed(f"librewolf --new-window '{login_url}' >&2 &")
server.wait_for_window("Omnom")

open_omnom()

# token
server.succeed("xdotool mousemove --sync 700 350 click 1")
server.succeed(f"xdotool type {token}")
server.sleep(10)

# url
server.succeed("xdotool mousemove --sync 700 470 click 1")
server.succeed(f"xdotool type '{service_url}'")
server.sleep(10)

# submit
server.succeed("xdotool mousemove --sync 900 520 click 1")
server.sleep(10)

open_omnom()

# save
server.succeed("xdotool mousemove --sync 900 520 click 1")
server.sleep(10)

# refresh
server.succeed("xdotool mousemove --sync 100 80 click 1")
server.sleep(10)

server.screenshot("home.png")

# view bookmarks
server.succeed("xdotool mousemove --sync 300 130 click 1")
server.sleep(10)

# view snapshot
server.succeed("xdotool mousemove --sync 970 230 click 1")
server.sleep(10)
server.succeed("xdotool mousemove --sync 160 340 click 1")
server.sleep(10)

server.screenshot("screenshot.png")

# view details
server.succeed("xdotool mousemove --sync 290 200 click 1")
server.sleep(10)

server.screenshot("snapshot_details.png")
'';
}
61 changes: 61 additions & 0 deletions nixos/tests/owi.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{
lib,
pkgs,
...
}:
{
name = "owi";

meta.maintainers = with lib.maintainers; [ ethancedwards8 ];

nodes.machine = {
environment.systemPackages = with pkgs; [ owi ];

environment.etc."owipass.rs".source = pkgs.writeText "owi.rs" ''
use owi_sym::Symbolic;

fn mean_one(x: i32, y: i32) -> i32 {
(x + y)/2
}

fn mean_two(x: i32, y: i32) -> i32 {
(y + x)/2
}

fn main() {
let x = i32::symbol();
let y = i32::symbol();
// proving the commutative property of addition!
owi_sym::assert(mean_one(x, y) == mean_two(x, y))
}
'';

environment.etc."owifail.rs".source = pkgs.writeText "owi.rs" ''
use owi_sym::Symbolic;

fn mean_wrong(x: i32, y: i32) -> i32 {
(x + y) / 2
}

fn mean_correct(x: i32, y: i32) -> i32 {
(x & y) + ((x ^ y) >> 1)
}

fn main() {
let x = i32::symbol();
let y = i32::symbol();
owi_sym::assert(mean_wrong(x, y) == mean_correct(x, y))
}
'';
};

testScript =
{ nodes, ... }:
''
start_all()

# testing
machine.succeed("owi rust --fail-on-assertion-only /etc/owipass.rs")
machine.fail("owi rust --fail-on-assertion-only /etc/owifail.rs")
'';
}
2 changes: 1 addition & 1 deletion nixos/tests/searx.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
server = {
port = "8080";
bind_address = "0.0.0.0";
secret_key = "@SEARX_SECRET_KEY@";
secret_key = "$SEARX_SECRET_KEY";
};
};
};
Expand Down
2 changes: 1 addition & 1 deletion nixos/tests/tlsrpt.nix
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

# Enabling postfix should put sendmail as the sendmail setting
machine.succeed("grep -q sendmail_script=sendmail /etc/tlsrpt/reportd.cfg")
machine.succeed("systemctl show --property SupplementaryGroups postfix.service | grep tlsrpt")
machine.succeed("getent group tlsrpt | grep -q postfix")

machine.log(machine.succeed("systemd-analyze security tlsrpt-collectd.service tlsrpt-reportd.service | grep -v ✓"))
'';
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/editors/greenfoot/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ stdenv.mkDerivation rec {

makeWrapper ${openjdk}/bin/java $out/bin/greenfoot \
"''${gappsWrapperArgs[@]}" \
--add-flags "-Dawt.useSystemAAFontSettings=on -Xmx512M \
--add-flags "-Dawt.useSystemAAFontSettings=gasp -Xmx512M \
--add-opens javafx.graphics/com.sun.glass.ui=ALL-UNNAMED \
-cp $out/share/greenfoot/boot.jar bluej.Boot \
-greenfoot=true -bluej.compiler.showunchecked=false \
Expand Down
8 changes: 4 additions & 4 deletions pkgs/applications/editors/vscode/extensions/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2045,8 +2045,8 @@ let
mktplcRef = {
name = "gitlab-workflow";
publisher = "gitlab";
version = "6.33.2";
hash = "sha256-28J1PxqJgULkbO49gjMyJf79pSlN1ZeN9vN5clJ2wYo=";
version = "6.35.0";
hash = "sha256-stSo+GHhEzIE1HevACEUmum9tNetMIfpz0t8330QlTI=";
};
meta = {
description = "GitLab extension for Visual Studio Code";
Expand Down Expand Up @@ -4403,8 +4403,8 @@ let
mktplcRef = {
publisher = "sonarsource";
name = "sonarlint-vscode";
version = "4.26.0";
hash = "sha256-Mru3dz0Dl/oDHd0tB/0Ixd+EselC+e70Cn7sdu1gkwk=";
version = "4.27.0";
hash = "sha256-0BqIJL9Vyccjsov1JQil3dRUdo9w8ecOUotVKzBlYGQ=";
};
meta.license = lib.licenses.lgpl3Only;
};
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/graphics/processing/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,11 @@ stdenv.mkDerivation rec {
makeWrapper $out/share/${pname}/processing $out/bin/processing \
''${gappsWrapperArgs[@]} \
--prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ libGL ]}" \
--prefix _JAVA_OPTIONS " " -Dawt.useSystemAAFontSettings=lcd
--prefix _JAVA_OPTIONS " " "-Dawt.useSystemAAFontSettings=gasp"
makeWrapper $out/share/${pname}/processing-java $out/bin/processing-java \
''${gappsWrapperArgs[@]} \
--prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ libGL ]}" \
--prefix _JAVA_OPTIONS " " -Dawt.useSystemAAFontSettings=lcd
--prefix _JAVA_OPTIONS " " "-Dawt.useSystemAAFontSettings=gasp"

runHook postInstall
'';
Expand Down
Loading
Loading