0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 21:50:33 +03:00
Commit graph

743 commits

Author SHA1 Message Date
Silvan Mosberger
14182c1970 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.

(branch-equivalent to commit 374e6bcc40)
2025-04-01 20:11:51 +02:00
34j
3290948518 monado: set VIT_SYSTEM_LIBRARY_PATH so that libbasalt.so can be found
(cherry picked from commit 783dff1c6f)
2025-03-05 07:44:46 +00:00
Lin Jian
dd88d7868c nixos/kmonad: avoid running an unnecessary bash
(cherry picked from commit c3588cf2c5)
2025-01-02 23:23:15 +00:00
Lin Jian
cca8a5caa2 nixos/kmonad: remove unnecessary cli flag --input
input has already been set in the config file.

(cherry picked from commit ed3f112a0e)
2025-01-02 23:23:15 +00:00
Lin Jian
27d3b1b157
nixos/kmonad: create determinate symlinks
(cherry picked from commit 9695e75dde)

The 25.05 release note is manually removed.
2025-01-03 02:30:08 +08:00
Lin Jian
433f87137f
[Backport release-24.11] nixos/kmonad: misc improvements (#370010) 2025-01-02 02:02:46 +08:00
Lin Jian
058a665d0c
nixos/kmonad: use lib.getExe
(cherry picked from commit 8463300edf)
2025-01-02 01:48:52 +08:00
Lin Jian
fba9b6486e
nixos/kmonad: use the official suffix for config file
Both the official Emacs[1] and Vim[2] plugins use kbd as the config file
suffix.

[1]: b07f3e1604/kbd-mode.el (L275)
[2]: 3797844519/ftdetect/kbd.vim (L18)

(cherry picked from commit f83da7d9bd)
2025-01-02 01:48:44 +08:00
Lin Jian
155e085d1f
nixos/kmonad: introduce a new helper function mkName
(cherry picked from commit 28a1740fd1)
2025-01-02 01:48:36 +08:00
Lin Jian
22ebf019dd
nixos/kmonad: make type of delay more strict
(cherry picked from commit 657ff03cc3)
2025-01-02 01:48:29 +08:00
Lin Jian
a4054a06e5
nixos/kmonad: simplify config for default keyboard name
(cherry picked from commit 23768e2a12)
2025-01-02 01:48:21 +08:00
Lin Jian
f5c476c368
nixos/kmonad: improve doc
(cherry picked from commit cbf4f6a86d)
2025-01-02 01:48:05 +08:00
Lin Jian
b86c19dad1
nixos/kmonad: add meta.maintainers
(cherry picked from commit ffea31ccbb)
2025-01-02 01:47:52 +08:00
Lin Jian
ced3bf7175 nixos/kmonad: make sure new config is used after nixos-rebuild switch
(cherry picked from commit 280715cf39)
2025-01-01 17:40:23 +00:00
Jörg Thalheim
63a5a73002 nixos/firmware: fix compression condition
(cherry picked from commit ace2b4c260)
2024-12-24 07:55:52 +01:00
Jörg Thalheim
4b39b2b37a nixos/firmware: make compression configurable
In nixos-images for nixos-anywhere, we optimize for the smallest
possible image size because our installer is loaded into RAM.

(cherry picked from commit 0a9dd5612d)
2024-12-24 07:55:49 +01: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
Sefa Eyeoglu
942f21f944 nixos/monado: add forceDefaultRuntime option
This option replaces the active runtime manifest in the user directory.
Games running through Steam's Pressure Vessel cannot read /etc so
forcefully overriding the file every time the service starts, will allow
those games to use Monado.

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
(cherry picked from commit 91fee43100)
2024-11-24 12:27:02 +00:00
Toast
1b54dff64e handheld-daemon-ui: init at 3.2.3 (#305027)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
Co-authored-by: Arne Keller <2012gdwu+github@posteo.de>
(cherry picked from commit d5808aee19)
2024-11-19 15:42:44 +00:00
Gaetan Lepage
c7af27341c nixos/g810-led: fix module
(cherry picked from commit 8fac714b78)
2024-11-17 14:45:34 +00:00
Gaetan Lepage
2775c851ea nixos/g810-led: init
(cherry picked from commit a5f34daeeb)
2024-11-15 17:08:28 +00:00
Sandro
3d5dcee08a
nixos/udisks2: add package option (#293495) 2024-11-11 14:57:07 +01:00
K900
44207d25be
nixos/amdvlk: don't set "amdgpu" xserver driver (#353987) 2024-11-06 13:39:09 +03:00
John Titor
5473874d08
nixos/amdvlk: don't set "amdgpu" xserver driver
Not related and this should never have been in the module in the first place.
Probably got in during a rebase.
2024-11-06 16:06:04 +05:30
Sandro
3774135e4e
nixos/bluetooth: reference bluez doc in descriptions (#352965) 2024-11-06 01:33:08 +01:00
AnnaGraphic
0d0690dc79 nixos/bluetooth: reference bluez doc in descriptions 2024-11-05 22:58:48 +01:00
Sandro
a4e9a2f859
tuxedo-keyboard: fix compilation for kernel 6.10 and 6.11 (#336633) 2024-11-05 16:43:58 +01:00
Philip Taron
2b12f69e85
spacenavd: resolve merge conflicts and address PR feedback 2024-11-04 09:02:39 -08:00
Jan B.
4391c3883b
nixos/tuxedo-drivers: init 2024-11-03 22:54:56 +01:00
Noa Aarts
64a429e14a
nixosModules.monado: use hardware.graphics instead of hardware.opengl 2024-11-02 21:47:02 +01:00
Noa Aarts
5bfad8d9f6
nixosModules.monado: format using nixfmt 2024-11-02 21:46:42 +01:00
Anderson Torres
178ea7bbd5 nixos/triggerhappy: update and format
mpc-cli is now mpc
2024-11-01 20:07:03 -03:00
Sefa Eyeoglu
17313151da
nixos/monado: install monado-vulkan-layers (#301044) 2024-10-31 19:21:38 +01:00
Sefa Eyeoglu
0642aa2f53
nixos/monado: install monado-vulkan-layers
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2024-10-24 15:01:42 +02:00
Rafael Fernández López
3f119f80a5
nvidia-container-toolkit: assert nvidia driver is present
Also, do not add the `nvidia` driver to `videoDrivers` automatically;
assert it is present (or the datacenter one) instead.
2024-10-22 00:05:26 +02:00
r-vdp
c9160efd81
nixos/kmonad: init 2024-10-18 11:47:26 +02:00
Someone
a9b63f037b
nvidia-container-toolkit: add "nvidia" to services.xserver.videoDrivers (#344174) 2024-10-14 19:58:35 +00:00
Tom Vincent
069e6f3262
nixos/upower: update percentage defaults
Current defaults were added in aecfea0, which were in turn based on upstream:
28bd86c181/etc/UPower.conf.

Current upstream config:
94c91f93f1/etc/UPower.conf
2024-09-27 09:41:55 +01:00
Rafael Fernández López
0d3c3735e5
nvidia-container-toolkit: add "nvidia" to services.xserver.videoDrivers
This will ensure that all requirements are met when the
nvidia-container-toolkit is enabled in order to generate the CDI specs
for the machine.

Also, if `config.virtualisation.docker.rootless.enable` is true,
automatically enable the CDI feature if the Docker version > 25 for
the rootless installation.
2024-09-24 17:10:07 +02:00
Robert Schütz
030f88a326 nixos/iptsd: Touch was renamed to Touchscreen in v3 2024-09-23 12:31:51 -07:00
Josh Hoffer
4080d35d2b nixos/udev: only restart when udev rules change
Only restart `systemd-udevd.service` if udev rules in `/etc/udev/rules`
actually changed. The paths of `services.udev.packages` may change
frequently but the resulting udev rules built by `udevRulesFor`
likely change less often.

This has the added benefit of not adding `services.udev.packages` to
the system closure if they are only used for their udev rules
(issue #308937).
2024-09-19 17:26:01 +02:00
Marco Rebhan
3b12ef2f6f
nixos/udisks2: add package option 2024-09-09 14:13:08 +02:00
sohalt
896663ce96 nixos/spacenavd: Use upstream module 2024-09-04 19:01:41 +02:00
Benno Bielmeier
b8c7d88784 nixos/services.thinkfan: fix undefined variables
In d9dc50dc11 the usage of `with lib;` has
been removed from thinkfan.nix. Unfortunately, adjusting the check line
and its usage of the functions all,id,zipListsWith has not been updated
resulting in evaluation errors complaining about "undefined variable".
Update: partly covered in 0646a0771b of #339084

rel: #208242
2024-09-03 10:42:28 +02:00
Felix Buehler
0646a0771b nixos/services.thinkfan: fix all & id 2024-09-02 21:12:56 +02:00
Felix Buehler
6747d84812 nixos/services.kanata: fix utils 2024-09-01 19:42:03 +02:00
Felix Bühler
30eba5df55
nixos/services.libinput: remove with lib; (#338054) 2024-08-30 23:15:31 +02:00
Felix Buehler
a79aa024ca nixos/services.usbmuxd: remove with lib; 2024-08-30 00:30:54 +02:00
Felix Buehler
ab7b22c311 nixos/services.upower: remove with lib; 2024-08-30 00:30:54 +02:00
Felix Buehler
c1573bb3ef nixos/services.undervolt: remove with lib; 2024-08-30 00:30:54 +02:00