Commit Graph

707 Commits

Author SHA1 Message Date
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
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
Felix Buehler
0de89d26ea nixos/services.udisks2: remove with lib; 2024-08-30 00:30:53 +02:00
Felix Buehler
b00fba5c63 nixos/services.udev: remove with lib; 2024-08-30 00:30:53 +02:00
Felix Buehler
48633eb323 nixos/hardware.tuxedo-rs: remove with lib; 2024-08-30 00:30:53 +02:00
Felix Buehler
624ea29c27 nixos/services.triggerhappy: remove with lib; 2024-08-30 00:30:53 +02:00
Felix Buehler
cb1696c728 nixos/services.tlp: remove with lib; 2024-08-30 00:30:53 +02:00
Felix Buehler
00052ae198 nixos/services.throttled: remove with lib; 2024-08-30 00:30:52 +02:00
Felix Buehler
d9dc50dc11 nixos/services.thinkfan: remove with lib; 2024-08-30 00:30:52 +02:00
Felix Buehler
f4fdd33746 nixos/services.thermald: remove with lib; 2024-08-30 00:30:52 +02:00
Felix Buehler
b80de00ac6 nixos/services.tcsd: remove with lib; 2024-08-30 00:30:52 +02:00
Felix Buehler
d59ce5878b nixos/hardware.spacenavd: remove with lib; 2024-08-30 00:30:52 +02:00
Felix Buehler
131116e4f0 nixos/services.saned: remove with lib; 2024-08-30 00:30:51 +02:00
Felix Buehler
e2a4b6715f nixos/services.ratbagd: remove with lib; 2024-08-30 00:30:51 +02:00
Felix Buehler
439cb745b0 nixos/hardware.rasdaemon: remove with lib; 2024-08-30 00:30:51 +02:00
Felix Buehler
08ec49ef41 nixos/services.pommed: remove with lib; 2024-08-30 00:30:51 +02:00
Felix Buehler
2f256fd905 nixos/services.pcscd: remove with lib; 2024-08-30 00:30:51 +02:00
Felix Buehler
b2d74343f1 nixos/services.openrgb: remove with lib; 2024-08-30 00:30:50 +02:00
Felix Buehler
78b24bea0f nixos/services.lirc: remove with lib; 2024-08-30 00:30:50 +02:00
Felix Buehler
827d9dfac9 nixos/services.keyd: remove with lib; 2024-08-30 00:30:50 +02:00
Felix Buehler
3b7622d31b nixos/services.kanata: remove with lib; 2024-08-30 00:30:50 +02:00
Felix Buehler
f5c96d88c1 nixos/services.joycond: remove with lib; 2024-08-30 00:30:50 +02:00
Felix Buehler
d71be6eda5 nixos/services.irqbalance: remove with lib; 2024-08-30 00:30:49 +02:00
Felix Buehler
650db2b016 nixos/services.interception-tools: remove with lib; 2024-08-30 00:30:49 +02:00
Felix Buehler
d3a4a69eda nixos/services.illum: remove with lib; 2024-08-30 00:30:49 +02:00
Felix Buehler
8ebc06069d nixos/services.fwupd: remove with lib; 2024-08-30 00:30:49 +02:00
Felix Buehler
6c707fe30f nixos/services.freefall: remove with lib; 2024-08-30 00:30:49 +02:00
Felix Buehler
29536d4a4d nixos/services.fancontrol: remove with lib; 2024-08-30 00:30:48 +02:00
Felix Buehler
3822e798f8 nixos/services.brltty: remove with lib; 2024-08-30 00:30:48 +02:00
Felix Buehler
555402cee5 nixos/services.bolt: remove with lib; 2024-08-30 00:30:48 +02:00
Felix Buehler
efcfb7ec52 nixos/services.auto-cpufreq: remove with lib; 2024-08-30 00:30:48 +02:00
Felix Buehler
f8305b629b nixos/services.acpid: remove with lib; 2024-08-30 00:30:48 +02:00
Felix Buehler
3314fc7215 nixos/services.libinput: remove with lib; 2024-08-29 00:35:47 +02:00
Someone
4faf4ca9af
nvidia-container-toolkit: only mount existing paths in the host (#319772) 2024-08-27 11:18:18 +00:00
Vili Sinervä
13f07436d4 nixos/libinput: Change new options to more appropriate data types
Change the options to be numbers or lists of numbers instead of strings
like the pre-existing options.
2024-08-25 13:45:14 +02:00
Vili Sinervä
891202ef1f nixos/libinput: Clarify that accelSpeed does not apply to custom profile
Add note to the description of the accelSpeed option to make it clear
that is only applies when flat or adaptive profile is in use.
2024-08-25 13:45:14 +02:00
Vili Sinervä
3aa3236289 nixos/libinput: Add options for defining a custom acceleration functions
Without these options the custom acceleration functions would have to be
defined with the additionalOptions option.
2024-08-25 13:45:14 +02:00
Vili Sinervä
34302b2424 nixos/libinput: Allow 'custom' acceleration profile
This is an option that works with the NixOS module as-is, but is
being blocked from use by the allowed enum values.
2024-08-25 13:45:14 +02:00