1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-24 18:16:21 +03:00
Commit graph

1372 commits

Author SHA1 Message Date
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
Felix Stupp
012fdbe02c
nixos/nix-flakes: ref to man page about flake registry 2025-04-22 10:07:43 +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
nicoo
238b407862
nixos: hardware.pulseaudio → services.pulseaudio (#369391) 2024-12-30 13:46:50 +00:00
Jeffrey C. Ollie
3c6c6920b3
ghostty: init at 1.0.0 (#368404)
* maintainers: add jcollie

* ghostty: init at 1.0.0
2024-12-27 22:04:47 -05:00
Maximilian Bosch
601a97f671
Merge: Correct password option docs and add related tests (#310484) 2024-12-22 15:45:08 +01:00
Maximilian Bosch
cb9b3fd788
nixos/modules: remove a few whitespaces from the pw override parts
Otherwise the evaluation warnings have a two or even three lines of
whitespace between paragraphs.
2024-12-22 15:32:56 +01:00
Jared Baur
e9e1d145f6
nixos/fontdir: fix X11-fonts cross compilation 2024-12-20 15:50:01 -08:00
Adam Dinwoodie
3275a6b361 nixos/nix-remote-build: correct comment
This module potentially generates `/etc/nix/machines`. Correct an
existing comment to refer to that path rather than `/etc/machines`.
2024-12-20 10:55:08 +00:00
Moritz Sanft
7fb2f407c0
nixos/getty: only include if config.console.enable
This makes it so that the getty units are only included if
`config.console.enable` is set to `true`. Previously, they would be
included, but disabled in that case, which is unnecessary.
2024-12-16 08:45:10 +01:00
fidgetingbits
52ce5caf36
nixos/users-groups: Correct and refactor password override documentation
Testing showed that the existing documentation regarding password override
ordering was incorrect. This commit corrects the errors and refactors
the way the text is constructed to make updating future ordering
changes significantly easier.
2024-12-15 12:21:32 +08:00
Aly Raffauf
3de5332bba
nixos/qt: install kio when qt.platformTheme = "kde" (#364032) 2024-12-11 13:17:04 +02:00
Alyssa Ross
e9eff47002 nixos/networking: don't add extra names to ::1
From hosts(5):

> For each host a single line should be present with the following
> information:
>
>               IP_address canonical_hostname [aliases...]

With lines like "::1 localhost ahost.adomin ahost", we were saying
that the canonical name for "ahost" was "localhost", the opposite of a
canonical name.  This is why a second loopback address (127.0.0.2) is
used for hostnames with IPv4 — if they were put after "localhost" on
the 127.0.0.1 line, the same thing would happen.  With IPv6 we can't
do the same thing as there's only a single loopback address, so
instead the right thing to do is to simply not list the hostnames in
/etc/hosts, and rely on the myhostname NSS plugin, which will handle
this correctly.

(Note that the examples in hosts(5) also do not include IPv6 FQDN or
hostname entries.)
2024-12-11 11:09:40 +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
Emil Thorsoe
92a4d1d60d enableAllTerminfo: re-add unbroken contour 2024-11-27 14:12:20 +02:00
Sandro Jäckel
db0a0b1173
nixos/users-groups: split isSystemUser/isNormalUser and uid check into two
Before the error message only mentioned isSystemUser/isNormalUser which
lead to a confusing situation when setting isNormalUser and an uid like
500 which would generate an error like:

error:
Failed assertions:
- Exactly one of users.users.other.isSystemUser and users.users.other.isNormalUser must be set.

from which you cannot know that setting the uid to 500 *and* setting
isNormalUser is the actual problem.

With this patch the error looks like:

error:
Failed assertions:
- A user cannot have a users.users.fixme.uid set below 1000 and set users.users.fixme.isNormalUser.
Either users.users.fixme.isSystemUser must be set to true instead of users.users.fixme.isNormalUser
or users.users.fixme.uid must be changed to 1000 or above.
2024-11-22 15:46:00 +01:00
Tristan Ross
f49e820fbc
24.11 beta release 2024-11-14 09:02:09 -08:00
Chuang Zhu
69f37ce6dc nixos/environment: make {sessionV,v}ariables items nullable 2024-11-07 17:53:02 +08:00
Philip Taron
e50c6cab11
treewide: fix links to specifications.freedesktop.org (#350918) 2024-11-03 09:06:56 -08:00
Maximilian Bosch
9c9b193569
Merge: nixos/users-groups: dump values of password options if multiple options have definitions (#349308) 2024-10-31 10:17:47 +01:00
rnhmjoj
8fafc35158
resolvconf: reliably set group permissions
If `resolvconf` is invoked by a process not running with the resolvconf
group as primary group, other processes will run into trouble as files
or directories under /run/resolvconf won't have write permissions.

This ACL rule ensure that resolvconf files, include new files created by
any process, are always accessible by users of the resolvconf group.
2024-10-25 21:33:30 +02:00
Victor Duarte
f2b58efde4 fix links to specifications.freedesktop.org 2024-10-24 13:00:55 +02:00