Eelco Dolstra
469f14ef0f
Don't pin 'nixpkgs' in the system registry by default
...
Nixpkgs takes up a lot of disk space so we shouldn't do this by
default.
2020-04-03 14:41:48 +02:00
Eelco Dolstra
74e7ef35fe
nix-daemon.nix: Add option nix.registry
...
This allows you to specify the system-wide flake registry. One use is
to pin 'nixpkgs' to the Nixpkgs version used to build the system:
nix.registry.nixpkgs.flake = nixpkgs;
where 'nixpkgs' is a flake input. This ensures that commands like
$ nix run nixpkgs#hello
pull in a minimum of additional store paths.
You can also use this to redirect flakes, e.g.
nix.registry.nixpkgs.to = {
type = "github";
owner = "my-org";
repo = "my-nixpkgs";
};
2020-04-02 19:38:00 +02:00
Eelco Dolstra
a1fa9e65ca
flake.nix: Add note
2020-02-10 16:36:53 +01:00
Eelco Dolstra
64e5f4d53b
Fix 'nix flake check'
2020-02-10 16:26:33 +01:00
Eelco Dolstra
60330b6065
flake.nix: Handle missing rev attribute
...
Dirty trees no longer set 'rev', so we need to handle this.
2020-02-05 23:15:18 +01:00
Eelco Dolstra
7ff2e743e8
flake.nix: Support more systems
2020-02-05 23:15:18 +01:00
Eelco Dolstra
0bf1ab421b
flake.nix: Remove packages, builders outputs
2020-02-05 23:15:18 +01:00
Eelco Dolstra
bda94ae808
epoch -> edition
2020-02-05 23:15:18 +01:00
Eelco Dolstra
26e4d09c9c
Export nixosModules.notDetected
2020-02-05 23:15:18 +01:00
Eelco Dolstra
b91803bf13
nixosSystem: Automatically set version suffix from flake
...
E.g.
$ nixos-version
19.03.20190913.af5eb77 (Koi)
2020-02-05 23:15:18 +01:00
Eelco Dolstra
6a210fa345
flake.nix: Remove obsolete name attribute
2020-02-05 23:14:32 +01:00
Eelco Dolstra
63bcbc19cd
Update flake interface
2020-02-05 23:14:32 +01:00
Eelco Dolstra
2ba1f3c195
Add flake outputs for the manuals
2020-02-05 23:14:32 +01:00
Eelco Dolstra
395f044bbe
flake.nix: Update epoch
2020-02-05 23:14:32 +01:00
Eelco Dolstra
b70a4436c6
flake.nix: provides -> outputs
2020-02-05 23:14:32 +01:00
Eelco Dolstra
0f913dee48
flake.nix: Add check
2020-02-05 23:14:32 +01:00
Eelco Dolstra
af376fdc23
legacyPkgs -> legacyPackages
2020-02-05 23:14:32 +01:00
Eelco Dolstra
57ccd736bb
Export a function for building NixOS system configurations
2020-02-05 23:14:32 +01:00
Eelco Dolstra
123dea9b0d
flake.nix: Set system explicitly for now
...
Flakes now are evaluated in pure mode, so we can't rely on
currentSystem anymore.
2020-02-05 23:14:32 +01:00
Eelco Dolstra
8eaf02b9cd
Add flake.nix
2020-02-05 23:14:32 +01:00