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

785 commits

Author SHA1 Message Date
Sefa Eyeoglu
9ebdac572e
monado: set VIT_SYSTEM_LIBRARY_PATH so that libbasalt.so can be found (#387175) 2025-03-05 08:44:10 +01:00
34j
783dff1c6f monado: set VIT_SYSTEM_LIBRARY_PATH so that libbasalt.so can be found 2025-03-05 13:39:01 +09:00
Philip Wilk
6a791193b6
nixos/hddfancontrol: support v2 argument format 2025-03-04 20:12:26 +00:00
Technosophist
c063a28835 nixos/tlp: fix NetworkManager RDW dispatcher script location (again)
As a result of #350268, the tlp NetworkManager dispatch script no longer worked.  It creates a broken
link to `/usr/lib/NetworkManager/dispatcher.d/99tlp-rdw-nm`.

This removes the `/usr/` prefix so the script is pointing to the right file.
2025-03-02 16:54:42 -05:00
Matei Dibu
f91b6f3581 nixos/rasdaemon: add package option 2025-02-28 11:46:35 +02:00
Christian Kögler
95c58aeb88
nixos/tlp: expose package (#375413) 2025-02-16 14:32:43 +01:00
dish
c5a30a0de7 nixos/supergfxd: fix documentation link formatting 2025-02-12 21:03:21 +01:00
dish
48be34d02d nixos/display: fix documentation link formatting 2025-02-12 21:03:21 +01:00
dish
0bf7fb1218 nixos/asusd: fix documentation link formatting 2025-02-12 21:03:21 +01:00
misuzu
45798f6e54
Add Thinkpad NXP1001 NFC support using libnfc-nci and PC/SC (#379118) 2025-02-10 20:04:51 +02:00
Christoph Honal
735f85e845 pcscd: allow multiple readerConfig entries 2025-02-10 15:59:53 +01:00
Peder Bergebakken Sundt
18e12e5a85 nixos/*: cleanup code-escaped manpage urls
Done with

    rg '[a-zA-Z.-]+\([0-9]+\)' -tnix nixos/ -l | xe sd '`\{manpage\}`([a-zA-Z.-]+\([0-9]+\))``' '{manpage}`$1`'
2025-02-05 13:22:07 +01:00
Peder Bergebakken Sundt
953f72e76e nixos/*: tag manpage references 2025-01-27 02:47:01 +01:00
MithicSpirit
dcc7199c4e
nixos/tlp: expose package
This allows viewing and/or modifying the tlp package used by the module,
which is especially important since it might be different from
`pkgs.tlp` due to RDW.
2025-01-26 13:13:46 -05:00
Fazzi
cc39de3db2 fancontrol: fix path by using lib.getExe' 2025-01-22 13:40:26 +00:00
William Edwards
daaab4b153 nixos/powerstation: init 2025-01-21 19:02:30 -08:00
Ben Brown
e81102472a upower: Support Suspend and Ignore CriticalPowerActions 2025-01-10 09:21:01 +00:00
Andreas Fuchs
0c5719fe0e Don't stop systemd-{networkd,resolved,udevd} on config switch
These daemons should not be stopped, as they're foundational to a
proper functioning of the system. When switching configurations, they
only need a restart instead of that stop/start cycle.
2025-01-08 13:05:27 -05:00
Christian Kögler
5abdde9f60
udev: substitute /usr/bin/cat in rules (#370740) 2025-01-05 23:35:03 +01:00
Michael Livshin
b758495e5d udev: "--replace" -> "--replace-quiet" in substitutions
"--replace" is deprecated, and neither vocal new alternative is
appropriate in this case.
2025-01-05 17:28:42 +02:00
Lin Jian
debb218a7a
nixos/kmonad: add new option enableHardening (#370437) 2025-01-05 19:02:27 +08:00
Will Fancher
15be453e9a
switch-to-configuration: Better handling of socket-activated units (#359724) 2025-01-04 11:51:21 -05:00
Michael Livshin
cdc84fcc96 udev: substitute /usr/bin/cat in rules
Used by alsa-utils 1.2.13.
2025-01-04 00:56:56 +02:00
Lin Jian
37e6624667
nixos/kmonad: add new option enableHardening
Before

```console
$ systemd-analyze security kmonad-foo.service | tail -n 1
→ Overall exposure level for kmonad-foo.service: 8.2 EXPOSED 🙁
```

After

```console
$ systemd-analyze security kmonad-foo.service | tail -n 1
→ Overall exposure level for kmonad-foo.service: 0.4 SAFE 😀
```
2025-01-04 03:41:15 +08:00
Lin Jian
aff999e6d4
nixos/kmonad: avoid running an unnecessary bash (#370064) 2025-01-03 07:22:46 +08:00
Lin Jian
c3588cf2c5
nixos/kmonad: avoid running an unnecessary bash 2025-01-03 02:21:23 +08:00
Lin Jian
ed3f112a0e
nixos/kmonad: remove unnecessary cli flag --input
input has already been set in the config file.
2025-01-03 02:21:18 +08:00
Lin Jian
9695e75dde
nixos/kmonad: create determinate symlinks 2025-01-02 06:02:52 +08:00
Lin Jian
e8ad057e99
nixos/kmonad: make sure new config is used after nixos-rebuild switch (#369853) 2025-01-02 01:39:54 +08:00
Lin Jian
280715cf39
nixos/kmonad: make sure new config is used after nixos-rebuild switch 2025-01-02 01:21:16 +08:00
Lin Jian
8463300edf
nixos/kmonad: use lib.getExe 2025-01-01 10:33:40 +08:00
Lin Jian
f83da7d9bd
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)
2025-01-01 10:33:40 +08:00
Lin Jian
28a1740fd1
nixos/kmonad: introduce a new helper function mkName 2025-01-01 10:33:40 +08:00
Lin Jian
657ff03cc3
nixos/kmonad: make type of delay more strict 2025-01-01 10:33:40 +08:00
Lin Jian
23768e2a12
nixos/kmonad: simplify config for default keyboard name 2025-01-01 10:33:39 +08:00
Lin Jian
cbf4f6a86d
nixos/kmonad: improve doc 2025-01-01 10:33:39 +08:00
Lin Jian
ffea31ccbb
nixos/kmonad: add meta.maintainers 2025-01-01 10:33:39 +08:00
Guillaume Girol
ba00c29619
nixos/sane: ensure saned can access usb scanners (#367198) 2024-12-28 10:07:58 +01:00
Marcin Serwin
1d2118f727
asusd: allow specifying configs via paths 2024-12-23 17:02:04 +01:00
Marcin Serwin
8fa4a6c597
asusd: support multiple aura configs
Since version 6.0.0 asusd supports multiple aura devices. Since each of
them may have a different configuration, the `aura.ron` file, previously
used for configuration, is now ignored in favor of device specific
`aura_{prod_id}.ron` configuration. This change adds support for
specifying multiple aura configs via `auraConfigs` attribute and removes
the old `auraConfig` attribute.
2024-12-22 12:28:17 +01:00
Guillaume Girol
7d0c25dca2 nixos/sane: ensure saned can access usb scanners
For a user to be able to scan with an USB scanner, it must have write access
to the corresponding file in /dev/bus/usb. Enabling the sane module
adds SANE's upstream hwdb file and udev rules to udev search path. The
hwdb file tags the scanner as `libsane_matched` and a builtin (from
systemd upstream) udev rule marks all `libsane_matched` devices as
uaccess. When a physical user logins, logind adds an acl allowing them
to write to the device.

Unfortunately, saned is a daemon. Therefore, uaccess has no effect for
it, and if no other udev rule changes the device to belong to the
scanner group or the lp group, (there are such rules, but they are not
complete enough, in that some scanners known by SANE rules are not known
by these rules), it will not be able to write to the scanner.

This solves this by adding a udev rule so that all libsane_matched
devices have an acl rules so that users in the scanner group can write.

A similar rule is present on Arch and Debian at least.

Note that we don't chgroup the file instead, because this posed problems
in the past: scanners are often also printers, and a device's group
cannot be simultaneously lp and scanner.

Fixes: https://github.com/NixOS/nixpkgs/issues/361981
2024-12-21 12:00:00 +00:00
William Edwards
11d10df01a inputplumber: init at 0.39.2 2024-12-19 09:30:46 -08:00
Andreas Fuchs
878be9c20b Address review feedback: Attempt to fix wonky indentation 2024-12-18 08:17:04 -05:00
Jörg Thalheim
ace2b4c260 nixos/firmware: fix compression condition 2024-12-16 09:01:17 +01:00
Jörg Thalheim
0a9dd5612d 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.
2024-12-13 15:52:21 +01:00
Arne Keller
0a324bb35b
scanservjs: init at 2.27.1; nixos/scanservjs: init (#249806) 2024-12-12 17:01:22 +01: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 https://github.com/infinisil/treewide-nixpkgs-reformat-script/archive/a08b3a4d199c6124ac5b36a889d9099b4383463f.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00
chayleaf
ce37a0a30a
nixos/scanservjs: init
Init NixOS module for scanservjs

https://github.com/sbs20/scanservjs/
2024-12-09 03:00:18 +07:00
Felix Buehler
3344c302e2 nixos/services.usbrelayd: remove with lib; 2024-12-08 13:21:53 +01:00
Felix Buehler
a5b237c027 nixos/services.trezord: remove with lib; 2024-12-08 13:21:53 +01:00