Commit Graph

1391 Commits

Author SHA1 Message Date
Moraxyc
069c640f76 nixos/getaddrinfo: init
This commit introduces a new NixOS module `networking.getaddrinfo` to allow
declarative configuration of `/etc/gai.conf`, which controls address
selection behavior for `getaddrinfo(3)` as defined in RFC 3484 and
RFC 6724.
2025-06-10 20:08:52 +08:00
Johannes Kirschbauer
6d8eca96ba sysctl: remove unnecessary definition filtering 2025-05-30 22:45:46 +02:00
arcnmx
41725bb0f7 nixos/swap: require mkswap when encrypted
the mkswap service manages a dm/luks block device when randomEncryption
is enabled, and is not an optional dependency of the swap unit
2025-05-29 19:28:40 +05:30
Katalin Rebhan
6f7d7cf76f nixos/users-groups: allow changing default home directory 2025-05-25 19:25:06 +02:00
Doron Behar
82dfbe95f5 nixos/i18n: Re-add special handling of LANGUAGE
This reverts commit 263297b4e5 while also
explaining in the docs where exactly LANGUAGE is ignored, and why.

Fixes #409306.
2025-05-23 09:13:29 +03:00
Doron Behar
263297b4e5 nixos/i18n: Remove special handling of LANGUAGE
Partially revert #179194 which first filtered
`extraLocaleSettings.LANGUAGE`. Indeed this environment variable is
given precedence according to:

https://www.gnu.org/software/gettext/manual/html_node/Locale-Environment-Variables.html

So using it will simply make all other `extraLocaleSettings` be ignored
in practice, but the OS shouldn't ignore it when aggregating the locales
required in general, as this setup should still be legitimate, and it
may even be useful if you wish to set it by default and use `env -u
LANGUAGE` for some programs.
2025-05-19 18:09:27 +03:00
Doron Behar
e8581078a1 i18n: Add charset related settings
Fixes #404758
2025-05-19 18:09:27 +03:00
nixpkgs-ci[bot]
6c6ee2d903 Merge master into staging-next 2025-05-03 18:04:30 +00:00
musjj
b94a794a6e nixos/i18n: support "all" for extraLocales 2025-05-02 14:23:45 +07:00
nixpkgs-ci[bot]
57718699b1 Merge master into staging-next 2025-04-30 09:29:33 +00:00
Doron Behar
708480f836 nixos/i18n: add extraLocales option (#356477) 2025-04-30 12:06:27 +03:00
musjj
07dde5f4c4 nixos/i18n: refactor aggregated locales into a variable 2025-04-28 22:04:41 +07:00
musjj
0f13f78d02 nixos/i18n: warn when the user has a badly-configured supportedLocales 2025-04-28 22:04:41 +07:00
musjj
401ec59a17 nixos/i18n: hide supportedLocales from the manual 2025-04-28 22:04:41 +07:00
musjj
073e4bd689 nixos/i18n: add extraLocales option 2025-04-28 02:48:08 +07:00
nixpkgs-ci[bot]
a821261015 Merge master into staging-next 2025-04-27 12:05:44 +00:00
Vladimír Čunát
22f5df0632 stub-ld: disable 32-bit stub ld on 64-bit systems (#398449) 2025-04-27 13:37:43 +02:00
nixpkgs-ci[bot]
032ce947b2 Merge staging-next into staging 2025-04-22 12:06:47 +00:00
Felix Stupp
012fdbe02c nixos/nix-flakes: ref to man page about flake registry 2025-04-22 10:07:43 +02:00
mikitsu
374b2ed9f9 nixos/users-groups: add warning when changing subuid ranges 2025-04-21 21:09:02 +02:00
mikitsu
46600598f1 nixos/users-groups: don't allocate coinciding subuid ranges with autoSubUidGidRange
Previously, when adding a new user when at least two users already exist,
this new user was assigned the same subuid range as the second existing user.
2025-04-21 21:09:00 +02:00
Jörg Thalheim
e9b95509b2 stub-ld: disable 32-bit stub ld on 64-bit systems
This pulls in another instance of nixpkgs including glibc.
This is both not great from a evaluation perspective and a dependency
closure.

So let's remove this part from nixpkgs again and re-enable it, when we
have slimmed down the build according to `environment.ldso32 = mkIf
pkgs.stdenv.hostPlatform.isx86_64 (mkDefault stub-ld32);`
2025-04-14 10:18:54 +02:00
Silvan Mosberger
374e6bcc40 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.
2025-04-01 20:10:43 +02:00
Austin Horstman
f62c664b16 qt: add "kde6" to qt.platformTheme (#384669) 2025-03-31 00:00:31 -05:00
Aleksana
f42205ed7f xdg/portals/lxqt: Fix documentation string indent (#391909) 2025-03-27 18:52:23 +08:00
Aleksana
b4ded625bd nixos/environment: make {sessionV,v}ariables items nullable (#354186) 2025-03-27 10:10:31 +08:00
Will Fancher
eefd9323ae Revert "24.11 beta release"
This reverts commit f49e820fbc.

This should have only been on release-24.11, not master
2025-03-24 19:39:13 -04:00
Kovacsics Robert
357a75fda7 xdg/portals/lxqt: Fix documentation string indent
I just spotted this while browsing the code, but double checked and it
looks badly indented in the manpages and on the web too.
2025-03-21 17:43:48 +00:00
K900
b64ec1944e nixos/fonts: ship fontconfig caches even for cross-compiled hosts (#391305) 2025-03-20 09:06:38 +03:00
Silvan Mosberger
4f6e508a09 nixos/users-groups: Enforce ASCII usernames and fix repeated doubling of activation script runtime (#385904) 2025-03-19 17:33:49 +01:00
Colin
9435a2b422 nixos/fonts: ship fontconfig caches even for cross-compiled hosts 2025-03-19 07:53:24 +00:00
NovaViper
841c9ff665 qt: add "kde6" to qt.platformTheme
Related issue: #260696
- Adds KDE Plasma 6 support, which fixes various issues with setting the
QT platform theme on the desktop environment
2025-03-10 20:26:45 -05:00
Sandro
74ee058fc3 nixos/sudo-rs: align sudo and sudo-rs config (#386423) 2025-03-10 16:51:43 +01:00
Jörg Thalheim
611bfa1dd4 make nix.settings.system-features default mergeable again (#383052) 2025-03-10 13:09:49 +01:00
Connor Baker
871cda0b06 testers.shellcheck: refactor, update docs, and simplify tests (#385940) 2025-03-07 20:53:33 -08:00
Connor Baker
cd7df192e3 treewide: add name argument to calls to testers.shellcheck 2025-03-08 00:15:22 +00:00
Philip Taron
f041d52e7b nixos/users-groups: Add assert on null shells (#279431) 2025-03-07 12:54:52 -08:00
r-vdp
4e17c9546f nixos/sudo-rs: align sudo and sudo-rs config
Since the latest release, sudo-rs supports all what we need
2025-03-02 17:42:18 +01:00
Silvan Mosberger
b602f86829 nixos/users-groups: Catch invalid usernames early
Prevents running into the problem from the parent commit in the first
place.
2025-02-28 22:33:55 +01:00
Silvan Mosberger
8181d2a7c1 nixos/user-groups: Don't double-UTF8-encode subUidMapFile
Because with it only being single-UTF8-decoded, this lead to the file
~doubling in size whenever it contained any non-ascii characters!
2025-02-28 21:55:12 +01:00
Sandro
d1c535f62a nixos/user-groups: add a toggle for user account creation (#358646) 2025-02-27 23:47:20 +01:00
Michele Guerini Rocco
d05074f981 nixos/getty: only include if config.console.enable == true (#363533) 2025-02-18 11:44:42 +01:00
Jörg Thalheim
7b912bcafe make nix.settings-system-features default mergeable again 2025-02-18 15:30:43 +07:00
Sandro
03b6a553eb nixos/users-groups: split isSystemUser/isNormalUser and uid check into two (#357944) 2025-02-16 20:35:45 +01:00
Christian Kögler
aa980ac71b nixos/nix: restructure default for system-features (#372878) 2025-02-14 00:11:19 +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
NotAShelf
1dd23b5d74 nixos/user-groups: add a toggle for user account creation
Microscopic change that allows users to toggle user accounts, per user, conditionally.
2025-02-02 02:07:03 +03:00
Peder Bergebakken Sundt
953f72e76e nixos/*: tag manpage references 2025-01-27 02:47:01 +01:00
Christian Kögler
ea9594ba15 nixos/nix: restructure default for system-features
Assign default for option system-features at the common place. It
allows use to re-use the default value in cause of setting the option.
2025-01-11 11:56:44 +01:00
misuzu
77351e03d8 nixos/fontdir: fix X11-fonts cross compilation (#366959) 2024-12-31 16:50:29 +02:00