0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-19 00:20:32 +03:00
Commit graph

278 commits

Author SHA1 Message Date
Maximilian Bosch
76b1e1fc84
Revert "[Backport release-24.11] nixos/alsa: rebirth from the ashes" 2025-01-12 19:49:08 +01:00
rnhmjoj
ac277552dc nixos/alsa: add rnhmjoj as maintainer
(cherry picked from commit b0ee109529)
2025-01-06 10:28:19 +00:00
rnhmjoj
4ae218e66f 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

(cherry picked from commit c8a84a01d5)
2025-01-06 10:28:19 +00:00
squalus
613063ea7a 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

(cherry picked from commit 19705d04f1)
2025-01-04 09:55:54 +00:00
Jean-Baptiste Giraudeau
1e73565633 nixos/tts: fix handling of extraArgs
(cherry picked from commit 7ebb6132f4)
2024-12-28 11:19:35 +00:00
Silvan Mosberger
d9d87c5196 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 https://github.com/infinisil/treewide-nixpkgs-reformat-script/archive/a08b3a4d199c6124ac5b36a889d9099b4383463f.tar.gz \
      --argstr baseRev 0128fbb0a5
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:29:24 +01:00
Jordan Williams
97639a5790 nixos/snapserver: restart the systemd service on failure
(cherry picked from commit 7031d0fdd0)
2024-11-19 14:08:38 +00:00
Jordan Williams
fcd89e06e3
nixos/snapserver: add package option 2024-11-06 14:51:15 -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
Jörg Thalheim
5356420466 treewide: remove unused with statements from maintainer lists
$ find -type f -name '*.nix' -print0 | xargs -P "$(nproc)" -0 sed -i \
  -e 's!with lib.maintainers; \[ *\];![ ];!' \
  -e 's!with maintainers; \[ *\];![ ];!'
2024-07-29 10:06:20 +08:00
Nicolas Gariepy
5d1063c439 nixos/jack: Fix jack-session init script
The path of the jack_wait executable in the jack-session script was
not a store path for no apparent reason.
2024-07-24 22:11:02 -04:00
Martin Weinelt
76442766ea
nixos/music-assistant: init 2024-07-17 22:29:38 +02:00
K900
c3391ff001 nixos-alsa: remove with lib;, fix undefined references 2024-07-15 10:33:34 +03:00
K900
3eeff54780 nixos/alsa: kill sound.enable and friends with fire 2024-07-13 13:56:18 +03:00
nuko
40916ded4a
maintainers: rename nu-nu-ko to fsnkty 2024-06-15 14:21:38 +12:00
robin
4b0fd37990
nixos/alsa: fix audio state loading on system start 2024-05-31 11:55:11 +02:00
Sandro Jäckel
b064e2db69
nixos/mopidy: add wants network-online.target to fix warning 2024-05-25 00:43:18 +02:00
Martin Weinelt
98d2dbc78d
Merge pull request #312591 from r-ryantm/auto-update/navidrome
navidrome: 0.52.0 -> 0.52.5
2024-05-21 21:43:12 +02:00
Martin Weinelt
90916525a6
nixos/navidrome: set empty settings default
This will not affect the options, but allows to not configure settings at
all, if you don't need to. Unbreaks the NixOS test, which relies on this
behavior.

Fixes: #312757
2024-05-21 21:23:35 +02:00
éclairevoyant
a74fd69291
nixos/navidrome: run nixfmt-rfc-style 2024-05-18 19:32:19 -04:00
éclairevoyant
18e089be7f
nixos/navidrome: fix settings type 2024-05-18 19:32:19 -04:00
nu-nu-ko
1c0d10e4f4
nixos/navidrome: add nu-nu-ko to maintainers 2024-05-10 21:16:30 +12:00
nu-nu-ko
7519d230b5
nixos/navidrome: ensure data & cache dirs exist with valid permissions 2024-05-10 21:16:30 +12:00
nu-nu-ko
ffc0d8bf58
nixos/navidrome: remove apply from settings option 2024-05-10 21:16:30 +12:00
nu-nu-ko
da8cdc2782
nixos/navidrome: use lib.getExe 2024-05-10 21:16:30 +12:00
nu-nu-ko
4987663e27
nixos/navidrome: add user/group options 2024-05-10 21:16:29 +12:00
nu-nu-ko
bbba2bde44
nixos/navidrome: rfcfmt, rm mdDoc & with lib; 2024-05-10 21:16:29 +12:00
Peder Bergebakken Sundt
3f1bb546b5
Merge pull request #299762 from autrimpo/gonic-0.16.3
gonic: 0.15.2 -> 0.16.4
2024-04-18 02:01:35 +02:00
Michal Koutenský
759812cc34 nixos/gonic: allow access to playlists 2024-04-18 00:18:43 +02:00
stuebinm
6afb255d97 nixos: remove all uses of lib.mdDoc
these changes were generated with nixq 0.0.2, by running

  nixq ">> lib.mdDoc[remove] Argument[keep]" --batchmode nixos/**.nix
  nixq ">> mdDoc[remove] Argument[keep]" --batchmode nixos/**.nix
  nixq ">> Inherit >> mdDoc[remove]" --batchmode nixos/**.nix

two mentions of the mdDoc function remain in nixos/, both of which
are inside of comments.

Since lib.mdDoc is already defined as just id, this commit is a no-op as
far as Nix (and the built manual) is concerned.
2024-04-13 10:07:35 -07:00
Bjørn Forsman
a29010fe79 nixos: improve many 'enable' descriptions 2024-04-09 07:10:17 +02:00
Alexander Tomokhov
552043a34d nixos/castopod: fix startup, displaying images, uploads up to 500 MiB
- new maxUploadSize option
- new dataDir option (with ReadWritePaths systemd support)
- admin page reports correct free disk space (instead of /nix/store)
- fix example configuration in documentation
- now podcast creation and file upload are tested during NixOS test
- move castopod from audio to web-apps folder
- verbose logging from the browser test
2024-04-01 19:16:25 +02:00
Martin Weinelt
b84f4bb54d
nixos/wyoming: move into home-automation category 2024-03-29 03:04:44 +01:00
Casey Link
6955b3743c
nixos/roon-server: add package option
Upstream updates roon-server frequently, and client apps (iOS, Android,
etc) will stop working with older versions of the roon-server.

We can't always keep the roon-server up to date as fast as upstream
releases, so it is often necessary for users to use an overlay or
provide their own version.

In particular the use case of running NixOS stable channel, but wanting
to use the `pkgs.roon-server` from unstable is one that I want to
support with this simple change.
2024-03-28 14:12:12 +01:00
Janne Heß
fcc95ff817 treewide: Fix all Nix ASTs in all markdown files
This allows for correct highlighting and maybe future automatic
formatting. The AST was verified to work with nixfmt only.
2024-03-28 09:28:12 +01:00
Martin Weinelt
3bc33ba58d
nixos/wyoming-faster-whisper: update model option 2024-03-23 23:29:06 +01:00
Peder Bergebakken Sundt
285d2dcf3c nixos/spotifyd: update configuration documentation url 2024-03-12 16:07:48 +01:00
Martin Weinelt
0deb00012d
Merge pull request #255707 from micahsoftdotexe/update-navidrome
nixos/navidrome: accept DataFolder option
2024-01-28 00:08:18 +01:00
Micah Tanner
7d9e3e510b nixos/navidrome: accept DataFolder option 2024-01-27 17:54:50 -05:00
Lassulus
da25b2382d
Merge pull request #280373 from h7x4/treewide-use-new-tmpfiles-api
treewide: use new tmpfiles API
2024-01-26 10:47:18 +01:00
h7x4
f5d513c573
treewide: use new tmpfiles api 2024-01-24 05:13:17 +01:00