1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-22 01:11:02 +03:00
Commit graph

311 commits

Author SHA1 Message Date
nanoyaki
8204df50e6 nixos/lavalink: init 2025-04-08 20:40:15 +02:00
Gaétan Lepage
d433b18c1f
navidrome: create music folder with systemd.tmpfiles (#385295) 2025-04-06 10:56:20 +02:00
Silvan Mosberger
374e6bcc40 treewide: Format all Nix files
Format all Nix files using the officially approved formatter,
making the CI check introduced in the previous commit succeed:

  nix-build ci -A fmt.check

This is the next step of the of the [implementation](https://github.com/NixOS/nixfmt/issues/153)
of the accepted [RFC 166](https://github.com/NixOS/rfcs/pull/166).

This commit will lead to merge conflicts for a number of PRs,
up to an estimated ~1100 (~33%) among the PRs with activity in the past 2
months, but that should be lower than what it would be without the previous
[partial treewide format](https://github.com/NixOS/nixpkgs/pull/322537).

Merge conflicts caused by this commit can now automatically be resolved while rebasing using the
[auto-rebase script](8616af08d9/maintainers/scripts/auto-rebase).

If you run into any problems regarding any of this, please reach out to the
[formatting team](https://nixos.org/community/teams/formatting/) by
pinging @NixOS/nix-formatting.
2025-04-01 20:10:43 +02:00
Charlie Egan
20c9782e2f nixos/navidrome: Add environmentFile config option
This is intended to be used to set secret environment variables for
navidrome, such as ListenBrainz/LastFM API keys.

Signed-off-by: Charlie Egan <charlieegan3@users.noreply.github.com>
2025-03-19 09:51:42 +00:00
Chris Moultrie
2a574e25f1
navidrome: create music folder with systemd.tmpfiles 2025-03-11 15:41:17 -04:00
shelvacu
1a4575f9db
nixos/modules: Add security.pki.caBundle option and make all services use it for CA bundles (#352244)
Previously some modules used `config.environment.etc."ssl/certs/ca-certificates.crt".source`, some used `"/etc/ssl/certs/ca-certificates.crt"`, and some used `"${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt"`. These were all bad in one way or another:

- `config.environment.etc."ssl/certs/ca-certificates.crt".source` relies on `source` being set; if `text` is set instead this breaks, introducing a weird undocumented requirement
- `"/etc/ssl/certs/ca-certificates.crt"` is probably okay but very un-nix. It's a magic string, and the path doesn't change when the file changes (and so you can't trigger service reloads, for example, when the contents change in a new system activation)
- `"${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt"` silently doesn't include the options from `security.pki`

Co-authored-by: Shelvacu <git@shelvacu.com>
2025-03-08 08:41:08 +00:00
Gerardo Doro
b0be6e4dd9
nixos/gonic: moving podcast-path from RO to RW 2025-02-14 13:43:11 +01:00
rnhmjoj
4843518a99
nixos/alsa: reintroduce hardware.alsa.enablePersistence 2025-01-13 19:58:43 +01:00
Michele Guerini Rocco
d575340ffb
nixos/alsa: rebirth from the ashes (#337345) 2025-01-06 11:08:25 +01:00
squalus
19705d04f1 navidrome: 0.53.3 -> 0.54.3
- Update to 0.54.3
- Add netgo tag required for build (https://github.com/navidrome/navidrome/issues/700)
- Add patchShebangs step for a script called by UI build
- Add settings option for telemetry

0.54.1 changelog: https://github.com/navidrome/navidrome/releases/tag/v0.54.1
0.54.2 changelog: https://github.com/navidrome/navidrome/releases/tag/v0.54.2
0.54.3 changelog: https://github.com/navidrome/navidrome/releases/tag/v0.54.3

Fixes CVE-2024-56362
2025-01-01 08:10:37 -08:00
nicoo
238b407862
nixos: hardware.pulseaudio → services.pulseaudio (#369391) 2024-12-30 13:46:50 +00:00
Jean-Baptiste Giraudeau
7ebb6132f4 nixos/tts: fix handling of extraArgs 2024-12-22 10:27:04 +01:00
rnhmjoj
b0ee109529
nixos/alsa: add rnhmjoj as maintainer 2024-12-13 13:29:14 +01:00
rnhmjoj
c8a84a01d5
nixos/alsa: rebirth from the ashes
The ALSA module was essentially removed in 3eeff547, with the main
motivation of avoiding confusion as to what `sound.enable` really meant.

As that could be achieved with a simple rename, this change brings back
the module in full force under the `hardware.alsa` namespace (with clear
beware signs for the pulse and pipewire folks) and adds a lot of useful
extra features. These include

 - `defaultDevice` to set the default playback and capture devices

 - `cardAliases`,`deviceAliases` to assign meaningful names to sound cards
   and devices (instead of say, `hw:0,1`)

 - `controls` to create virtual volume controls

 - `enableRecorder` to easily configure a loopback device to record
   the computer audio

 - fixes to the udev restore rules
2024-12-13 13:29:13 +01:00
Arne Keller
6f44e1219f
nixos/navidrome: support dns through systemd-resolved (#290901) 2024-12-13 10:46:47 +01:00
Leah Amelia Chen
68891efe67
marytts: init at 5.2.1-unstable-2024-10-09, nixos/marytts: init (#351933)
* marytts: init at 5.2.1-unstable-2024-10-09

* nixos/marytts: init module

* nixos/marytts: add tests
2024-12-12 00:12:54 -05:00
Silvan Mosberger
4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00
Felix Buehler
f600d6a3b1 nixos/services.ympd: remove with lib; 2024-11-27 22:26:59 +01:00
Felix Buehler
9d80afc3c4 nixos/services.spotifyd: remove with lib; 2024-11-27 22:26:59 +01:00
Felix Buehler
f6a10dfc09 nixos/services.slimserver: remove with lib; 2024-11-27 22:26:59 +01:00
Felix Buehler
ecb168c8d7 nixos/services.roon-server: remove with lib; 2024-11-27 22:26:59 +01:00
Felix Buehler
794d3952b0 nixos/services.roon-bridge: remove with lib; 2024-11-27 22:26:58 +01:00
Felix Buehler
bde5fcc9b8 nixos/services.networkaudiod: remove with lib; 2024-11-27 22:26:58 +01:00
Felix Buehler
b477479cb7 nixos/services.mpdscribble: remove with lib; 2024-11-27 22:26:58 +01:00
Felix Buehler
de5c62db29 nixos/services.liquidsoap: remove with lib; 2024-11-27 22:26:58 +01:00
Felix Buehler
f645147c7e nixos/services.jmusicbot: remove with lib; 2024-11-27 22:26:58 +01:00
Felix Buehler
291d92e529 nixos/services.jack: remove with lib; 2024-11-27 22:26:58 +01:00
Felix Buehler
e8fa5a92e9 nixos/services.icecast: remove with lib; 2024-11-27 22:26:58 +01:00
Felix Buehler
1d19c390cf nixos/services.hqplayerd: remove with lib; 2024-11-27 22:26:58 +01:00
Felix Buehler
dfd031a486 nixos/services.goxlr-utility: remove with lib; 2024-11-27 22:26:58 +01:00
Felix Buehler
496d11787d nixos/services.gonic: remove with lib; 2024-11-27 22:26:57 +01:00
Felix Buehler
cab8ab375c nixos/services.gmediarender: remove with lib; 2024-11-27 22:26:57 +01:00
Felix Buehler
c62a55f1b6 nixos/services.botamusique: remove with lib; 2024-11-27 22:26:57 +01:00
Jordan Williams
90dfafee35
nixos/mopidy: restart the systemd service on failure
This ensures Mopidy is running, even after crashes.
2024-11-26 16:30:56 -06:00
Felix Buehler
9262fc48f9 nixos/mopidy: use lib.getExe 2024-11-24 12:05:41 +01:00
Felix Buehler
fba9ba64b3 nixos/mopidy: remove "with" statment 2024-11-24 12:03:03 +01:00
Jordan Williams
7031d0fdd0
nixos/snapserver: restart the systemd service on failure 2024-11-19 06:52:11 -06:00
Felix Bühler
8a95f3f42b
nixos/mopidy: fix Python dependency collisions between extensions (#354069) 2024-11-16 00:59:30 +01:00
Jordan Williams
fcd89e06e3
nixos/snapserver: add package option 2024-11-06 14:51:15 -06:00
Jordan Williams
45b28d976f
nixos/mopidy: fix Python dependency collisions between extensions
Fixes #297539.
2024-11-06 13:42:38 -06:00
Aleksana
87360536b4
nixos/jack: Fix jack-session init script (#329784) 2024-10-29 12:26:57 +08:00
ettom
4a9538bdbf nixos/snapserver: default http.docRoot to snapweb 2024-10-09 21:45:45 +03:00
Artturin
e0464e4788 treewide: replace stdenv.is with stdenv.hostPlatform.is
In preparation for the deprecation of `stdenv.isX`.

These shorthands are not conducive to cross-compilation because they
hide the platforms.

Darwin might get cross-compilation for which the continued usage of `stdenv.isDarwin` will get in the way

One example of why this is bad and especially affects compiler packages
https://www.github.com/NixOS/nixpkgs/pull/343059

There are too many files to go through manually but a treewide should
get users thinking when they see a `hostPlatform.isX` in a place where it
doesn't make sense.

```
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv.is" "stdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv'.is" "stdenv'.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "clangStdenv.is" "clangStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "gccStdenv.is" "gccStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenvNoCC.is" "stdenvNoCC.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "inherit (stdenv) is" "inherit (stdenv.hostPlatform) is"
fd --type f "\.nix" | xargs sd --fixed-strings "buildStdenv.is" "buildStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "effectiveStdenv.is" "effectiveStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "originalStdenv.is" "originalStdenv.hostPlatform.is"
```
2024-09-25 00:04:37 +03:00
Philip Taron
48d6e1118b
nixos/services.snapserver: fix regression introduced in #339099 by renaming local function 2024-09-24 09:08:43 -07:00
Felix Bühler
3884721bad
nixos/services.mpd: remove with lib; (#339100) 2024-09-11 17:22:14 +02:00
Felix Buehler
674e5ad68a nixos/services.mpd: remove with lib; 2024-09-10 21:40:16 +02:00
Felix Buehler
60e8c03c9b nixos/services.snapserver: remove with lib; 2024-09-02 22:25:44 +02:00
ettom
549912e6ff nixos/snapserver: add nss-lookup.target dependency 2024-08-25 23:46:52 +02:00
ettom
75682f11c6 nixos/snapserver: Fix per-stream sampleFormat/codec opts 2024-08-11 18:32:06 +02:00
Erno Hopearuoho
eb8268e6cb goxlr-utility: 1.1.1 -> 1.1.1-unstable-2024-08-06
fixes #331319 where user expects xdg desktop entry to continue work as a launcher
hopefully also helps with #332957
2024-08-08 14:20:38 +03:00