Commit graph

1418 commits

Author SHA1 Message Date
Wolfgang Walther 91a8fee3aa
treewide: remove redundant parentheses
Auto-fixed by nixf-diagnose.
2025-10-05 10:52:03 +02:00
Wolfgang Walther c283f32d29
treewide: remove unused with
Auto-fixed by nixf-diagnose.
2025-10-05 10:50:41 +02:00
qbisi b9fd04eb4d nixos/swap: use btrfs mkswapfile if possible 2025-09-29 19:03:56 +08:00
Nick Cao c2ecb970df
nixos/zram: zramSwap.memoryPercent fix description 2025-09-22 18:06:20 -04:00
NAHO af3321b3c2
nixos/zram: prevent implicitly disabling negative-sized ZRAM
Prevent implicitly disabling a negative-sized ZRAM because disabling the
ZRAM should probably always be done by disabling the zrawmSwap.enable
option.

Fixes: cd1b48bc35 ("nixos: Add zram swap module")
2025-09-19 21:32:28 +02:00
nixpkgs-ci[bot] e17f375991
Merge master into staging-next 2025-09-09 00:16:24 +00:00
cinereal c30b9ec953
formats: add nixConf
adds `nixConf` (to generate `nix.conf` files) as a file format to
`lib.formats`, and uses it for serializing `nix.settings`.

this makes it easier to 'manually' serialize `nix.settings`, which is
relevant in e.g. safely handling sensitive values such as that of
`nix.settings.access-tokens`.

Signed-off-by: cinereal <cinereal@riseup.net>
2025-09-06 13:25:52 +02:00
Vladimír Čunát 7f3ba72e24
Merge branch 'master' into staging 2025-08-23 11:39:22 +02:00
K900 31d5c4e753 nixos/treewide: clean up some more references to deleted qt5 things 2025-08-22 11:38:49 +03:00
Florian Klink 3321fa3e4c
kbd: link compression libs directly (#434001) 2025-08-19 22:03:39 +02:00
nikstur 8d51c6277e kbd: 2.8.0 -> 2.8.0-unstable-2025-08-12
Link compression libs directly.

- Clean up derivation
- Remove NIX_LDFLAGS which achieved nothing. Static compilation works
  without it on master. It's unclear what this should've every achieved.
  kbd doesn't link against audit.
- Build directly from source now instead of the preconfigured tarball
  (avoids xz-style issues)
2025-08-18 23:46:44 +02:00
Emily 01e8f570c6 nixos/malloc: unpin LLVM for Scudo
This was using `llvmPackages_latest` before that became an alias.
2025-08-18 15:56:40 +01:00
Wolfgang Walther f96d58f0c8
nixos/config/sysfs: run treefmt 2025-08-11 09:16:28 +02:00
Mikael Voss ba04f97d4e nixos/config/sysfs: init module 2025-08-11 12:16:59 +05:30
nikstur 42cf56db09 nixos/system-path: add corePackages option
This allows users to override all packages. This is useful to build
minimal systems that really don't required these packages that
previously were "required".
2025-08-10 22:48:26 +02:00
nikstur d5ae87bdeb
Revert "nixos: allow more things to be disabled" 2025-08-10 22:22:08 +02:00
Arian van Putten 1bb040fae8
nixos: allow more things to be disabled (#429695) 2025-08-10 19:49:52 +02:00
Martin Weinelt 63c4ed7e64
nixseparatedebuginfod2: init package and module (#428845) 2025-08-10 15:46:23 +02:00
Naïm Camille Favier e4b933ddb4
nixos/resolveconf: not resetting package (#426557) 2025-08-07 13:42:58 +02:00
nikstur 6df45ae281 nixos/system-path: add corePackages option
This allows users to override all packages. This is useful to build
minimal systems that really don't required these packages that
previously were "required".
2025-07-31 20:42:35 +02:00
Guillaume Girol ca548d4da9 nixos: make it possible for several modules to provide a debuginfod server
by introducing a `environment.debuginfodServers` option.
2025-07-27 23:01:05 +02:00
Wolfgang Walther 5a0711127c
treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
Glen Huang 7454288c91
nixos/resolveconf: not resetting package
package already has a default value, there is no need to reset it
2025-07-19 11:00:05 +08:00
isabel 6cdee65115
nixos/users-groups: group members filter by enabled 2025-07-18 22:19:11 +01:00
Philip Taron 8279ffe622
treewide: specify that mebibytes are used when it's ambiguous (#424169) 2025-07-11 12:29:33 -07:00
Axel Karjalainen 7159ab6f43 treewide: specify where mebibytes are used when it's ambiguous 2025-07-11 00:44:23 +03:00
DavHau 485b06a376 nixos/sysctl: sane inotify defaults globally
Currently, sane inotify limits are only set when graphical-desktop is enabled, but inotify is also used on servers by non-graphical applications
2025-06-17 18:47:31 +07:00
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