mirror of
https://github.com/NixOS/nix
synced 2025-06-25 06:31:14 +02:00
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"
|