mirror of
https://github.com/NixOS/nix
synced 2025-06-27 12:41:15 +02:00
This does not include any automation for the release branch, but is based on the configuration of https://github.com/NixOS/nix/pull/12349 pre-commit run -a nixfmt-rfc-style
10 lines
168 B
Nix
10 lines
168 B
Nix
{
|
|
name,
|
|
uidRange ? false,
|
|
}:
|
|
|
|
with import <nixpkgs> { };
|
|
|
|
runCommand name {
|
|
requiredSystemFeatures = if uidRange then [ "uid-range" ] else [ ];
|
|
} "id; id > $out"
|