Commit Graph

10 Commits

Author SHA1 Message Date
Simonas Kazlauskas
493fe388bd nixos/crowdsec: allow systemd reloading the service
cscli routlinely suggests this command to apply changes.
2026-07-12 17:22:51 +03:00
Bruno Hoffmann
881d48d486 nixos/crowdsec: Add use of lib.getExe to cat call 2026-02-05 21:57:24 +01:00
zowoq
dd3b179222 nixos: Fix modules meta.maintainers issues (#484155) 2026-01-27 06:08:20 +00:00
Samuel Dionne-Riel
43eca5c08d maintainer-list: Fix M0ustach3 maintainer entry
Two different PRs, two different issues.

The first PR, chronologically-merged-in, #426687 introduced a new
module, and while reviewers “reviewed” the `meta.maintainers` entry,
they did not notice the maintainer was not in the maintainers list file.

 - https://github.com/NixOS/nixpkgs/pull/426687#discussion_r2311053832

Then, in #437310, merged a few days later, another new module was added
with M0ustach3 as a maintainer. At the very least, an attempt was made
in de66c73a19 to add the maintainer to the
list, but an unfortunate typo (or two?) in the maintainers list entry
means the two intended usage of the new entry still don't work.

The issue here is not from the contributors. The reviewers and
committers could have done better, but it's not even truly their fault.
The issue is the meta information in NixOS modules was never checked. In
any way AFAICT. Otherwise this would have been caught immediately, and
not four months later.

Anyway, the intent clearly is that the entry should matche the GitHub
username.
2026-01-26 20:05:33 -05:00
Gaël James
43099bea23 crowdsec: 1.7.2 -> 1.7.6 2026-01-24 15:35:57 +01:00
NAHO
a2ed7e8d88 nixos: remove optional builtins prefixes from prelude functions
Remove optional builtins prefixes from prelude functions by running:

    builtins=(
      abort
      baseNameOf
      break
      derivation
      derivationStrict
      dirOf
      false
      fetchGit
      fetchMercurial
      fetchTarball
      fetchTree
      fromTOML
      import
      isNull
      map
      null
      placeholder
      removeAttrs
      scopedImport
      throw
      toString
      true
    )

    fd \
      --exclude doc/manual/release-notes \
      --type file \
      . \
      nixos \
      --exec-batch sed --in-place --regexp-extended "
        s/\<builtins\.($(
          printf '%s\n' "${builtins[@]}" |
            paste --delimiter '|' --serial -
        ))\>/\1/g
      "

    nix fmt
2026-01-15 16:07:55 +01:00
Nicolas Mémeint
df100b8dc2 nixos/crowdsec: Change service type to notify like upstream 2025-09-23 19:11:55 +02:00
Cody Allen
110d054cf5 nixos/crowdsec: use full grep path
I tried moving to the new crowdsec module and I got the error
`/nix/store/hj8y6b01r78fjka4351mdxvq5kd5q7j2-crowdsec-setup/bin/crowdsec-setup: line 10: grep: command not found`.
This seems to fix the issue.
2025-09-23 08:50:06 -04:00
Harish Rajagopal
7c7747206c nixos/crowdsec: Add missing option descriptions 2025-09-10 08:53:41 +02:00
TornaxO7
a2c6b5e6af nixos/crowdsec: init module
Co-Authored-By: acuteaangle <zestypurple@protonmail.com>
Co-Authored-By: m0ustach3 <37956764+M0ustach3@users.noreply.github.com>
2025-08-27 23:57:26 +02:00