about summary refs log tree commit diff
path: root/nixos/modules/services/hardware
AgeCommit message (Collapse)AuthorFilesLines
2022-12-25nixos/sane: point SANE_CONFIG_DIR away from /etc/sane.dBjørn Forsman1-2/+2
This brings back the ability to e.g. configure sane-airscan with `environment.etc."sane.d/airscan.conf".text = ...`. (AFAICT, sane-airscan loads all config files it finds, so it'll first load the one from the nixos hardware.sane.* configuration, then the user specified one in /etc/sane.d/airscan.conf.) Fixes: 4fbec87a5bfc ("nixos/sane: point env vars to /etc for quick reload") Fixes https://github.com/NixOS/nixpkgs/issues/207262
2022-12-19nixos/usbmuxd: Ability to change packageJonas Heinrich1-1/+11
2022-12-17nixos: fix typosfigsoda2-2/+2
2022-12-13Merge pull request #195341 from zhaofengli/fwupd-extra-daemon-confRyan Lahfa1-26/+42
nixos/fwupd: Make daemon.conf structured
2022-12-09nixos/supergfxd: make optional, fix eval (again)K9002-2/+2
2022-12-08nixos/doc: fix some optionsNaïm Favier2-2/+2
2022-12-08supergfxd: fix config formatK9001-3/+3
2022-12-07Merge pull request #204422 from SuperSandro2000/bluezfullSandro1-6/+0
2022-12-06nixos/fwupd: Make daemon.conf structuredZhaofeng Li1-26/+42
2022-12-04nixos/bluetooth: remove bluezFull alias from examplesSandro1-6/+0
2022-12-04nixos/asusctl: initAlexandre Acebedo1-0/+114
2022-12-04nixos/supergfxctl: initAlexandre Acebedo1-0/+38
2022-12-01Merge pull request #199520 from bjornfor/nixos-hardware-sane-open-firewalRyan Lahfa1-0/+10
nixos/sane: add openFirewall option
2022-11-21nixos/udev: enable initrd-udevadm-cleanup-db.service in systemd stage 1Nick Cao1-1/+8
2022-11-13Merge pull request #199667 from bjornfor/nixos-sane-indirection-for-quick-reloadGuillaume Girol1-2/+4
nixos/sane: point env vars to /etc for quick reload
2022-11-09nixos/udisks2: symlink libblockdev configsBernardo Meurer1-1/+6
Without this, you get the following error message in the logs: udisksd[4082]: Failed to load config files: Failed to get contents of the config dir (/etc/libblockdev/conf.d/)Error opening directory “/etc/libblockdev/conf.d/”: No such file or directory. Using the built-in config
2022-11-05nixos/sane: mention sane-airscan in the extraBackends optionBjørn Forsman1-2/+4
It's a very useful backend (that probably should be enabled by default, like on Ubuntu), let's start by making it easier to discover. Ref https://github.com/NixOS/nixpkgs/issues/28406.
2022-11-05nixos/sane: point env vars to /etc for quick reloadBjørn Forsman1-2/+4
Point $SANE_CONFIG_DIR and $LD_LIBRARY_PATH to symlinks in /etc, instead of directly to nix store paths, so that activating a new configuration takes effect immediately, instead of requiring users to re-login.
2022-11-04nixos/sane: add openFirewall optionBjørn Forsman1-0/+10
Open ports needed for discovery of scanners on the local network, e.g. needed for Canon scanners (BJNP protocol). Ref. https://github.com/NixOS/nixpkgs/issues/28406.
2022-10-31Merge master into staging-nextgithub-actions[bot]1-2/+4
2022-10-26nixos/udev: add enable optionSandro Jäckel1-2/+4
2022-10-25Merge staging-next into staginggithub-actions[bot]1-1/+2
2022-10-25brscan4-etc-files: rename name to pname&versionAndrew Kvalheim1-1/+2
re #103997
2022-10-21nixos/pcscd: allow use without polkitrnhmjoj1-3/+7
The polkit support in pcsclite is entirely optional but package enables it unconditionally and this breaks connecting to the pcscd daemon on systems without polkit. The fix is making this configurable and automatically disabling `polkitSupport` when the polkit service is disabled.
2022-10-10nixos/fwupd: Fix configuration file mergingZhaofeng Li1-1/+1
2022-10-07nixos/udev: allow marking firmware as not compressibleNick Cao1-3/+3
2022-09-30nixos.fwupd: add remote list optioncab1-10/+27
Co-authored-by: jtojnar <jtojnar@gmail.com>
2022-09-27nixos/openrgb: init moduleJonathan Ringer1-0/+52
2022-09-18usbrelay: 1.0 -> 1.0.1Michal Sojka1-4/+0
2022-09-05Merge pull request #189056 from jtojnar/fwupdSandro1-0/+2
2022-09-04nixos/fwupd: add polkit dependencyJan Tojnar1-0/+2
We are building fwupd daemon with polkit support which means polkit daemon is required. Previously polkit was enabled by default via udisks2 but that stopped with https://github.com/NixOS/nixpkgs/commit/f7637100655127dffbe14011b45be6a71f0e203d breaking the fwupd installed tests as a result. Let’s add the polkit dependency to the fwupd module to ensure polkit is available.
2022-08-31nixos/*: convert options with listingspennae1-6/+6
minor rendering changes.
2022-08-31nixos/*: convert options with admonitions to MDpennae3-17/+17
rendering changes only slightly, most changes are in spacing.
2022-08-31nixos/*: md-convert hidden plaintext optionspennae2-4/+4
most of these are hidden because they're either part of a submodule that doesn't have its type rendered (eg because the submodule type is used in an either type) or because they are explicitly hidden. some of them are merely hidden from nix-doc-munge by how their option is put together.
2022-08-31nixos/*: convert internal option descriptions to MDpennae2-8/+8
we'll have to do it eventually, may as well be now.
2022-08-31nixos/*: automatically convert option descriptionspennae23-31/+31
conversions were done using https://github.com/pennae/nix-doc-munge using (probably) rev f34e145 running nix-doc-munge nixos/**/*.nix nix-doc-munge --import nixos/**/*.nix the tool ensures that only changes that could affect the generated manual *but don't* are committed, other changes require manual review and are discarded.
2022-08-31nixos/*: md-convert options with unordered listspennae1-5/+3
mostly no rendering changes. some lists (like simplelist) don't have an exact translation to markdown, so we use a comma-separated list of literals instead.
2022-08-31nixos/*: convert multiline inline code to listingspennae1-2/+2
presumably it was not intended to have these blocks rendered inline, and markdown conversion would be messy as well.
2022-08-27nixos/thinkfan: convert descriptions to MDpennae1-28/+34
also convert multi-line literals to code blocks to make them render in a legible manner.
2022-08-21nixos/kanata: remove redundant `lib`Lin Jian1-4/+4
2022-08-19Revert "nixos/fwupd: enable udisks2"Kenny MacDermid1-2/+0
This reverts commit fb5bceb3ff3b99f6531908f46526cb55c7d29eac. Reverted at the request of the author, Bernardo Meurer, to avoid requiring udisks2 for fwupd to work.
2022-08-19nixos/fwupd: migrate to uefi_capsule.confKenny MacDermid1-3/+3
In version 1.5.5 of fwupd the uefi plugin was renamed to uefi-capsule. As part of those changes the configuration file was renamed and changed. This modules configuration mismatch was generally hidden because when udisks2 is enabled fwupd will use that instead. Without udisks2 the following warning is seen: WARNING: UEFI ESP partition not detected or configured
2022-08-16nixos/fwupd: enable udisks2Bernardo Meurer1-0/+2
Without this, you get a warning that fwupd is unable to find the ESP partition. c.f. https://github.com/fwupd/fwupd/wiki/PluginFlag:esp-not-found
2022-08-12Merge pull request #185474 from pennae/option-docs-mdpennae1-3/+2
nixos/*: more options md conversion
2022-08-11nixos/udisks2: don't enable by defaultajs1241-8/+1
This was enabled by default in 18a7ce76fcf80389bc8db2dd3e961a74637b5162 with the reason that it would be "useful regardless of the desktop environment.", which I'm not arguing against. The reason why this should not be enabled by default is that there are a lot of systems that NixOS runs on that are not desktop systems. Users on such systems most likely do not want or need this feature and could even consider this an antifeature. Furthermore, it is surprising to them to find out that they have this enabled on their systems. They might be even more surprised to find that they have polkit enabled by default, which was a default that was flipped in a813be071ceed15b9238373bd751ee99e2470357. For some discussion as to why see https://github.com/NixOS/nixpkgs/pull/156858. Evidently, this default is not only surprising to users, but also module developers, as most if not all modules for desktop environments already explicity set services.udisks2.enable = true; which they don't need to right now.
2022-08-06nixos/*: automatically convert option docspennae1-2/+2
2022-08-06nixos/kanata: sync with version 1.0.6Lin Jian1-31/+90
- improve some descriptions - device -> devices - add options - extraArgs - port - create a symlink in RUNTIME_DIRECTORY - grant it read permission of /dev/uinput - relax network-related restrictions when port is used - change type of some hardening options to list to align with systemd - CapabilityBoundingSet - IPAddressDeny - SystemCallArchitectures
2022-08-05nixos/*: normalize manpage references to single-line formpennae1-2/+1
now nix-doc-munge will not introduce whitespace changes when it replaces manpage references with the MD equivalent. no change to the manpage, changes to the HTML manual are whitespace only.
2022-08-03nixos/*: automatically convert option docs to MDpennae2-15/+15
once again using nix-doc-munge (https://github.com/pennae/nix-doc-munge/commit/69d080323ae27c0d8da3967c62b925a9aedb2828)
2022-08-03nixos/*: normalize link formatpennae1-3/+2
make (almost) all links appear on only a single line, with no unnecessary whitespace, using double quotes for attributes. this lets us automatically convert them to markdown easily. the few remaining links are extremely long link in a gnome module, we'll come back to those at a later date.