about summary refs log tree commit diff
path: root/nixos/modules/config
AgeCommit message (Collapse)AuthorFilesLines
2024-05-06nixos/terminfo: always use buildPlatform's terminfo (#309108)Jared Baur1-1/+1
Many terminal packages don't cross compile, so the `terminfo` NixOS module was not usable for nixos configurations that are cross-compiled. Terminfo files (AFAIK) are small files that contain data about terminal capability, so they should never have any runtime dependencies that would cause any executables or otherwise incompatible outputs from the `buildPlatform` to leak into the nixos config's closure.
2024-05-05nixos/xdg-terminal-exec: init module北雁 Cryolitia1-0/+54
2024-05-01Merge pull request #307553 from SuperSandro2000/gst-plugins-good-noxSandro1-1/+1
nixos/no-x-libs: disable more GUIs for gst_all_1.gst-plugins-good
2024-04-28nixos/no-x-libs: disable more GUIs for gst_all_1.gst-plugins-goodSandro Jäckel1-1/+1
2024-04-28nixos/no-x-libs: add ffmpeg, ffmpeg_6, ffmpeg_7Sandro1-0/+3
2024-04-26Merge pull request #266540 from surfaceflinger/hardened-malloc-lightPeder Bergebakken Sundt1-2/+17
graphene-hardened-malloc: migrate to by-name, build light variant
2024-04-18nixos/malloc: add graphene-hardened-lightnat1-2/+17
2024-04-17nixos/shells-environment: allow int and float in environment variablesSandro Jäckel1-2/+2
2024-04-16nixos/zram: add compression algorithms to option enumDaniel Fullmer1-1/+1
These options are available on a standard NixOS system, which can be seeing by running `cat /sys/devices/virtual/block/zram0/comp_algorithm`.
2024-04-13nixos: remove all uses of lib.mdDocstuebinm47-303/+300
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-12Merge pull request #302608 from nbdd0121/dnsJanik1-3/+1
nixos/resolvconf: fix useLocalResolver when IPv6 is enabled
2024-04-12Merge pull request #296584 from Schweber/masterJanik1-1/+2
nixos/resolvconf: add option "trust-ad" when `useLocalResolver` is enabled
2024-04-09nixos: improve many 'enable' descriptionsBjørn Forsman2-2/+2
2024-04-08nixos/resolvconf: fix useLocalResolver when IPv6 is enabledGary Guo1-3/+1
resolvconf.conf is a shell script and unlike resolv.conf, multiple nameservers are specified by space separating them instead of adding multiple lines. Fixes: fc060cc3cb1ceb1825cc015abd16dc0fce326836
2024-04-04lib: add xoredef1-1/+0
This gets clumsily reimplemented in various places, to no useful end.
2024-03-21nixos/users-groups: move linger to oneshot and add nixos testAdam Stephens1-13/+20
2024-03-21nixos/users-groups: fix broken lingerAdam Stephens1-2/+3
2024-03-19nixos/nix: Fix example for `nix.settings` optionSilvan Mosberger1-1/+1
Attribute sets aren't valid option values, needs to be a list
2024-03-17nixos/resolvconf: add option "trust-ad" when `useLocalResolver` is enabledSchweber1-1/+2
2024-03-15Merge pull request #278064 from symphorien/nix_config_extraGuillaume Girol1-1/+8
nixos/nix: add workaround for https://github.com/NixOS/nix/issues/9487
2024-03-15nixos/resolvconf: add `::1` as local dns resolverJanik H.1-0/+2
2024-03-09Merge pull request #133542 from fpletz/refactor/pinentry-remove-multiple-outputsSandro1-1/+1
pinentry: remove multiple outputs
2024-03-03nixos/users-groups: Fix the update-lingering activation script failingJordan Williams1-0/+5
The update-lingering activation script currently fails during rebuilds. This happens when removing a user with linger enabled. The call to loginctl disable-linger runs for the non-existent user. This returns an error code which causes the failure. To mitigate this, this PR removes any residual linger files. These are files named for the user in /var/lib/systemd/linger. A simple check for user existence determines whether to delete the file. This happens before the call to disable-linger to avoid any errors. Fixes #283769.
2024-03-03nixos/nix: add workaround for https://github.com/NixOS/nix/issues/9487Guillaume Girol1-1/+8
Nix has a suprising behavior where if the option `extra-foo` is set before `foo`, then setting `foo` overwrites the setting for `extra-foo`. This is reported as https://github.com/NixOS/nix/issues/9487, and will likely not be fixed any time soon. This works around this issue by always putting `extra-*` settings after non-extra ones in the nixos-generated `/etc/nix.conf`.
2024-03-02pinentry: remove multiple outputs packageFranz Pletz1-1/+1
fixes #133156 #124753
2024-02-24Merge master into staging-nextgithub-actions[bot]1-1/+1
2024-02-24nixos/nix: documentation: fix outdated reference to /etc/nix.confColin1-1/+1
2024-02-18Merge staging-next into staginggithub-actions[bot]2-3/+2
2024-02-17Merge pull request #213783 from SuperSandro2000/nox-vteSandro2-3/+2
nixos/vte: use vte without any GUI dependencies; nixos/no-x-libs: add vte
2024-02-17Merge staging-next into staginggithub-actions[bot]1-20/+8
2024-02-17Merge pull request #268197 from jtojnar/xdp-variable-changesJan Tojnar1-20/+8
xdg-desktop-portal: Use custom variable for finding portals
2024-02-17Merge staging-next into staginggithub-actions[bot]1-2/+20
2024-02-16Merge pull request #287506 from Ma27/warn-user-password-optionsLinus Heckemann1-2/+20
nixos/users-groups: warn on ambiguous password settings
2024-02-16nixos/no-x-libs: build pipewire without vulkan supportIzorkin1-1/+1
2024-02-15nixos/ldso: avoid instance of nixpkgs (#288509)Jonas Chevalier1-3/+3
Follow-up to #269551 Avoid creating a new instance of nixpkgs to access two variables. `pkgs.pkgsi686Linux` was being accessed whenever the feature is being used or not. A second instance of nixpkgs is being created in `nixos/modules/config/stub-ld.nix` and can be disabled by setting `environment.ldso32 = null` or `environment.stub-ld.enable = false`. Both combined fixes this error: error: attribute 'i686-linux' missing
2024-02-11nixos/xdg/portal: Use systemPackage instead of buildEnvJan Tojnar1-11/+3
Portals are global so we can just link them globally. There might, in theory, be some unexpected system-path contamination (e.g. when a portal package installs its executables to `/bin`) but I think the risk is relatively minor compared to the added complexity. While at it, let’s point the environment variable to system-path. That will allow changes to installed portals to apply without having to re-log in.
2024-02-11xdg-desktop-portal: Use custom variable for finding portalsJan Tojnar1-14/+10
x-d-p only looks for portal definitions in one of two places: - datadir (which we cannot install anything to, since Nix packages are immutable) - when `XDG_DESKTOP_PORTAL_DIR` environment variable is set, the path specified therein (meant for tests, disables looking for portal configuration anywhere else) Let’s introduce our own `NIX_XDG_DESKTOP_PORTAL_DIR` environment variable that will only control the portal definitions lookup. We will not use it for searching for configuration because it would require looking in the parent directory and `XDG_CONFIG_DIRS` variable is sufficient for us.
2024-02-09nixos/users-groups: warn on ambiguous password settingsMaximilian Bosch1-2/+20
After 4b128008c5d9fde881ce1b0a25e60ae0415a14d5 it took me a while in a test setup to find out why `root` didn't have the password anymore I declared in my config. Because of that I got reminded how the order of preference works for the password options: hashedPassword > password > hashedPasswordFile If the user is new, initialPassword & initialHashedPassword are also relevant. Also, the override is silent in contrast to any other conflicting definition in NixOS. To make this less surprising I decided to warn in such a case - assertions would probably break too much that technically works as intended. Also removed the `initialHashedPassword` for `root`. This would cause a warning whenever you set something in your own config and a `!` is added automatically by `users-groups.pl`. `systemd-sysusers` also seems to implement these precedence rules, so having the warning for that case also seems useful.
2024-02-05fastfetch: add vulkanSupport optionIzorkin1-1/+1
2024-02-05fastfetch: add waylandSupport optionIzorkin1-1/+1
2024-02-05fastfetch: add x11Support optionIzorkin1-0/+1
2024-01-29nixos/no-x-libs: add gpg-tuiIzorkin1-0/+1
2024-01-22Merge pull request #270727 from nikstur/nixos-perlless-activationLinus Heckemann1-4/+6
Perlless Activation
2024-01-18nixos/systemd-sysusers: initnikstur1-4/+6
2024-01-16nixos/modules: Split recursive mkdir with permissionsVictor Engmark1-1/+2
Detected by ShellCheck as violating <https://github.com/koalaman/shellcheck/wiki/SC2174>.
2024-01-10Merge pull request #243169 from 2xsaiko/outgoing/krb5Peder Bergebakken Sundt1-369/+0
nixos/krb5: cleanup, fix and RFC42-ify
2024-01-08nixos/no-x-libs: add gjsSandro Jäckel1-0/+1
2023-12-30Merge pull request #272552 from SuperSandro2000/ghostscript-noxNick Cao1-0/+1
nixos/no-x-libs: add ghostscript
2023-12-29nixos/nix-channel: remove unused stringAfternikstur1-1/+0
2023-12-29nixos/ldap: replace activationScriptnikstur1-46/+55
Replace with a dedicated systemd service.