aboutsummaryrefslogtreecommitdiff
path: root/flake.nix (unfollow)
Commit message (Collapse)AuthorFilesLines
2020-10-13flake.nix: allow inclusion of `nixpkgs` as `path:/.../`Maximilian Bosch1-1/+1
When adding `nixpkgs` as flake-input using the `path`-fetcher, you currently get the following error since neither `lastModifiedDate` nor `lastModified` are stored in `flake.lock` for paths: ``` error: --- EvalError --------------------------------------------------------------------------- nix-build at: (48:71) in file: /nix/store/147clg8svaxyj7pl80ra9kmmm72mdg94-source/flake.nix 47| system.nixos.versionSuffix = 48| ".${final.substring 0 8 (self.lastModifiedDate or self.lastModified)}.${self.shortRev or "dirty"}"; | ^ 49| system.nixos.revision = final.mkIf (self ? rev) self.rev; attribute 'lastModified' missing ``` This patch adds the fallback-value `19700101` to `versionSuffix` if none of `lastModified{,Date}` are set in the lockfile.
2020-09-17nixos-rebuild: add flake support for build-vmCole Helbling1-3/+23
This relies on users using `nixpkgs.lib.nixosSystem` to define their system; otherwise, the `vm` and `vmWithBootLoader` attributes will not exist.
2020-07-23flake.nix: use lib.extendFabian Möller1-4/+4
This preserves the nixosSystem function if another flake uses lib.extend itself.
2020-07-06flake.nix: add armv6l/armv7l systemsJörg Thalheim1-1/+8
We built at least armv7l on hydra, therefor nixpkgs should also expose it.
2020-06-08flake.nix: Remove edition fieldEelco Dolstra1-2/+0
2020-04-03Don't pin 'nixpkgs' in the system registry by defaultEelco Dolstra1-1/+0
Nixpkgs takes up a lot of disk space so we shouldn't do this by default.
2020-04-02nix-daemon.nix: Add option nix.registryEelco Dolstra1-1/+2
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-02-10flake.nix: Add noteEelco Dolstra1-0/+2
2020-02-10Fix 'nix flake check'Eelco Dolstra1-2/+2
2020-02-05flake.nix: Handle missing rev attributeEelco Dolstra1-2/+2
Dirty trees no longer set 'rev', so we need to handle this.
2020-02-05flake.nix: Support more systemsEelco Dolstra1-1/+8
2020-02-05flake.nix: Remove packages, builders outputsEelco Dolstra1-10/+1
2020-02-05epoch -> editionEelco Dolstra1-1/+1
2020-02-05Export nixosModules.notDetectedEelco Dolstra1-0/+4
2020-02-05nixosSystem: Automatically set version suffix from flakeEelco Dolstra1-2/+11
E.g. $ nixos-version 19.03.20190913.af5eb77 (Koi)
2020-02-05flake.nix: Remove obsolete name attributeEelco Dolstra1-2/+0
2020-02-05Update flake interfaceEelco Dolstra1-4/+4
2020-02-05Add flake outputs for the manualsEelco Dolstra1-4/+14
2020-02-05flake.nix: Update epochEelco Dolstra1-1/+1
2020-02-05flake.nix: provides -> outputsEelco Dolstra1-2/+2
2020-02-05flake.nix: Add checkEelco Dolstra1-0/+4
2020-02-05legacyPkgs -> legacyPackagesEelco Dolstra1-2/+2
2020-02-05Export a function for building NixOS system configurationsEelco Dolstra1-1/+3
2020-02-05flake.nix: Set system explicitly for nowEelco Dolstra1-1/+1
Flakes now are evaluated in pure mode, so we can't rely on currentSystem anymore.
2020-02-05Add flake.nixEelco Dolstra1-0/+23