Cole Helbling
379f99e422
nixos-rebuild: add flake support for build-vm
This relies on users using `nixpkgs.lib.nixosSystem` to define their
system; otherwise, the `vm` and `vmWithBootLoader` attributes will not
exist.
(cherry picked from commit e26b348689 )
6 years ago
Fabian Möller
74430a81ff
flake.nix: use lib.extend
This preserves the nixosSystem function if another flake uses lib.extend
itself.
6 years ago
Jörg Thalheim
4c26d0ec5f
flake.nix: add armv6l/armv7l systems
We built at least armv7l on hydra, therefor nixpkgs should also expose it.
6 years ago
Eelco Dolstra
97fc8af29b
flake.nix: Remove edition field
6 years ago
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.
6 years ago
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";
};
6 years ago
Eelco Dolstra
a1fa9e65ca
flake.nix: Add note
6 years ago
Eelco Dolstra
64e5f4d53b
Fix 'nix flake check'
6 years ago
Eelco Dolstra
60330b6065
flake.nix: Handle missing rev attribute
Dirty trees no longer set 'rev', so we need to handle this.
6 years ago
Eelco Dolstra
7ff2e743e8
flake.nix: Support more systems
7 years ago
Eelco Dolstra
0bf1ab421b
flake.nix: Remove packages, builders outputs
7 years ago
Eelco Dolstra
bda94ae808
epoch -> edition
7 years ago
Eelco Dolstra
26e4d09c9c
Export nixosModules.notDetected
7 years ago
Eelco Dolstra
b91803bf13
nixosSystem: Automatically set version suffix from flake
E.g.
$ nixos-version
19.03.20190913.af5eb77 (Koi)
7 years ago
Eelco Dolstra
6a210fa345
flake.nix: Remove obsolete name attribute
7 years ago
Eelco Dolstra
63bcbc19cd
Update flake interface
7 years ago
Eelco Dolstra
2ba1f3c195
Add flake outputs for the manuals
7 years ago
Eelco Dolstra
395f044bbe
flake.nix: Update epoch
7 years ago
Eelco Dolstra
b70a4436c6
flake.nix: provides -> outputs
7 years ago
Eelco Dolstra
0f913dee48
flake.nix: Add check
7 years ago
Eelco Dolstra
af376fdc23
legacyPkgs -> legacyPackages
7 years ago
Eelco Dolstra
57ccd736bb
Export a function for building NixOS system configurations
7 years ago
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.
7 years ago
Eelco Dolstra
8eaf02b9cd
Add flake.nix
7 years ago