Commit Graph

908 Commits

Author SHA1 Message Date
Mitchell Skaggs
d737091da3 nixos/man-db: set preferLocalBuild = true
When we _must_ build, prefer building locally since we probably already have the manpages here. Otherwise, Nix would send all the manpages to a remote builder which isn't likely to be much faster since building the DB is single-threaded. Hopefully a best-of-both worlds between keeping or removing 39e63f110e.
2025-11-02 09:28:29 -06:00
Wolfgang Walther
f2640ee208 top-level: return __splicedPackages 2025-10-31 20:34:05 +01:00
Aliaksandr
80f12557f5 treewide: replace "yes" else "no" usages to lib.boolToYesNo 2025-10-21 16:04:34 +03:00
Will Fancher
f75a8b7e9a nixos/users-groups: New clock system group 2025-10-03 01:35:22 -04:00
h7x4
a7a8289ee9 nixos/misc/ids: use more accurate int types 2025-09-22 18:45:49 +02:00
Maximilian Bosch
a48aa7995c nixos/nixpkgs: correct some option defaults (#441948) 2025-09-17 09:13:33 +00:00
Adam C. Stephens
ec17e680af lxd: remove packages and modules 2025-09-13 12:47:00 -04:00
éclairevoyant
45193d5a8c nixos/nixpkgs: correct some option defaults 2025-09-11 17:12:35 -04:00
Jade Lovelace
602cc45c09 nixos/gateone: remove
The package is literally gone, this could never work.
2025-08-21 21:39:45 -07:00
Robert Hensing
4d3eb9460a Factor out the NixOS meta.maintainers module (#431450) 2025-08-21 10:11:08 +02:00
Aaron Andersen
487e725463 php.services.default: init 2025-08-06 21:24:04 -04:00
Robert Hensing
0c156a7144 modules/generic/meta-maintainers: init
This factors out `meta.maintainers` from NixOS `misc/meta.nix` for use in arbitrary
Module System applications.

It is useful beyond NixOS and not coupled to it, although it is currently coupled to Nixpkgs'
`lib.maintainers`.
That restriction could be lifted optionally if there's future demand.
2025-08-06 14:58:50 +02:00
Robert Hensing
dcc0ee9ea1 nixos/documentation: Allow the inclusion of a nixpkgs/modules directory 2025-08-06 14:58:50 +02:00
Robert Hensing
efaca0c196 nixos/meta: Fix maintainers example
`maintainers.all` does not exist, and should not exist.

Neither does `alice`, but she's a metavariable.
2025-08-06 14:40:49 +02:00
Robert Hensing
9ed72a85ab nixos/documentation/modular-services: init
Render documentation for modular services.
https://nixos.org/manual/nixos/unstable/#modular-services

This is admittedly not a great solution, but it is a rather simple
solution that we can use until we develop a proper one.

Flaws:
- These are rendered in the NixOS documentation, but modular services
  are not meant to be exclusive to NixOS.
- They are rendered as NixOS options, but should be imported into
  service submodules.

Benefits:
- Simple
- search.nixos.org integration for free
2025-08-04 12:09:39 +02:00
Robert Hensing
f5ee08446a Modular services (#372170) 2025-07-24 16:46:34 +02:00
Wolfgang Walther
5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
Robert Hensing
109a6a9d1e Add assertions and warnings to modular services 2025-07-20 03:01:05 +02:00
Robert Hensing
7e591c0e36 nixos/nixpkgs/read-only: fix cross‐compilation (#416276) 2025-06-19 20:06:24 +02:00
Emily
196f6a812b nixos/nixpkgs/read-only: fix cross‐compilation
This matches the definition of `_module.args.pkgs` in the standard
Nixpkgs module, and fixes a bunch of build issues caused by use of
`nativeBuildInputs = [ pkgs.foo ];` throughout NixOS.

A fallback could be added in case we expect people might be passing
in package sets without `__splicedPackages`, although that seems like
it would be inherently broken to me.
2025-06-12 23:14:24 +01:00
Peder Bergebakken Sundt
7d7cd81fd7 nixos/modules/misc/ids: Document more alternatives than DynamicUsers 2025-06-10 12:52:49 +02:00
Emily
cfcdbad637 nixos/man-db: fix cross‐compilation
I don’t love this, but it seems to be the best we can do.
2025-06-08 16:03:07 +01:00
Peder Bergebakken Sundt
c77ac9dfc3 treewide: fix typos 2025-06-02 16:07:07 +02:00
Adrien Faure
aeedfab1bf nixos/documentation: add option to disable redirects
Related to issue #https://github.com/NixOS/nixpkgs/issues/412451
2025-06-01 13:38:56 +02:00
patka
92ceb4a51c nixos/polipo: drop
Upstream hasn't seen activity since 2014 and archived the project in 2021. There's no longer a need for HTTP proxies
2025-05-18 09:19:45 +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
Peder Bergebakken Sundt
527be14321 nixos/doc: convert links to manpages 2025-02-21 16:31:09 +01:00
éclairevoyant
37d08685e8 nixos/version: validate system.stateVersion 2025-02-06 07:04:02 -05:00
Robert Hensing
0b47fba230 Revert "nixos/nixpkgs: make config.nixpkgs.{localSystem,crossSystem,buildPlatform,hostPlatform} write only"
This reverts commit 0a19371146.
2025-02-05 14:29:18 +01:00
Wolfgang Walther
0a19371146 nixos/nixpkgs: make config.nixpkgs.{localSystem,crossSystem,buildPlatform,hostPlatform} write only
The description for options.nixpkgs.system already hints at this:

  Neither ${opt.system} nor any other option in nixpkgs.* is meant
  to be read by modules and configurations.
  Use pkgs.stdenv.hostPlatform instead.

We can support this goal by not elaborating the systems anymore, forcing
users to go via pkgs.stdenv.

This will prevent problems when making the top-level package sets
composable in the next commit. For this to work, you should pass a fully
elaborated system to nixpkgs' localSystem or crossSystem options.
2025-02-01 12:04:59 +01:00
K900
7c251e2b5f Revert "pkgs/top-level: make package sets composable" 2025-01-26 09:43:44 +03:00
Wolfgang Walther
b3ef08a73c pkgs/top-level: make package sets composable (#303849) 2025-01-25 21:25:27 +01:00
Wolfgang Walther
eec21001b0 nixos/nixpkgs: pass original system args instead of elaborated
Passing the elaborated system defeats what pkgs/top-level/default.nix
tries to do: Pass only the original args and let defaults be inferred.

The underlying problem is that lib.systems.elaborate can not deal with
arbitrary overrides, but will often return an inconsistent system
description when partially overriding some values. This becomes most
prominent if trying to override an already elaborated system.
2025-01-25 18:55:03 +01:00
Sandro Jäckel
4ea0805f4e nixos/modules: drop findutils locate support
Co-authored-by: 71rd <71rd@posteo.net>
2025-01-21 18:21:04 +01:00
piegames
603733851b treewide: Fix incorrect string escapes 2025-01-07 19:49:28 +01:00
Will Fancher
4971ed01cb nixos/ids: Link to RFC #52 and explain that static IDs are not allowed. 2024-12-23 17:01:59 -05:00
Will Fancher
218901bd4c nixos/whisparr: Remove static IDs 2024-12-23 01:21:59 -05:00
Will Fancher
55e8064b0b Revert "nixis/uinput: use a fixed GID for the uinput group"
This reverts commit 70119aa60f.
2024-12-23 01:21:59 -05:00
Arne Keller
e89a8d56de whisparr: init at 2.0.0.548 + nixos/whisparr: initial commit (#244172) 2024-12-15 23:01:50 +01:00
Drewry Pope
d388ee0ec8 nixos/label: fix typo: loosing=>losing (#365294)
typo: loosing=>losing
2024-12-15 11:29:30 +02: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 a08b3a4d19.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00
Philip Taron
82ab56b332 nixos/locate: update hardening from upstream (#362126) 2024-12-06 12:51:10 -08:00
K900
10f4a9ab75 linux/common-config: enable support for crashkernel dumps (#347932) 2024-12-06 10:15:20 +03:00
Sandro Jäckel
578e4012fd nixos/locate: update hardening from upstream 2024-12-04 15:38:37 +01:00
Doron Behar
32ad523bd5 nixos/documentation: Link Devhelp files (#218123) 2024-12-01 11:25:40 +02:00
Fernando Rodrigues
02e1f93cb4 nixos/version: add extraOSReleaseArgs and extraLSBReleaseArgs
A free-form `attrsOf str` option that is merged with the /etc/os-release
builder, allowing downstreams to customise arbitrary os-release fields.
This is separate from the variant option, as using an attribute set
merge means one gets an infinte recursion when making extraOSReleaseArgs
a recursive set, and the variant attribute is useful to define elsewhere
or multiple times.

Ditto for /etc/lsb-release.

Signed-off-by: Fernando Rodrigues <alpha@sigmasquadron.net>
2024-11-29 19:58:29 -03:00
Fernando Rodrigues
b4d7b9ade2 nixos/version: use 24-bit ANSI colour code
It's almost 2025; we don't need to use 3-bit colour anymore. Let's use
the proper colour code for NixOS' light blue:
ea1384e183/logo/README.md (colours)

Signed-off-by: Fernando Rodrigues <alpha@sigmasquadron.net>
2024-11-29 19:56:30 -03:00
jopejoe1
bf5d64a130 nixos/os-release: make default_hostname distribution default (#359571) 2024-11-29 22:54:21 +00:00
Juanjo Presa
5a6ea278da nixos/os-release: make default_hostname distroId 2024-11-28 13:25:47 +01:00
Felix Buehler
9a8512f460 nixos/meta: remove with lib; 2024-11-27 22:26:56 +01:00