summaryrefslogtreecommitdiff
path: root/flake.nix (follow)
Commit message (Expand)AuthorAgeFilesLines
* flake.nix: allow inclusion of `nixpkgs` as `path:/.../`•••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. Maximilian Bosch2020-10-131-1/+1
* 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. Cole Helbling2020-09-171-3/+23
* Merge pull request #92423 from Mic92/arm-flakes•••flake.nix: add armv6l/armv7l systemsJörg Thalheim2020-07-281-1/+8
|\
| * flake.nix: add armv6l/armv7l systems•••We built at least armv7l on hydra, therefor nixpkgs should also expose it. Jörg Thalheim2020-07-061-1/+8
* | flake.nix: use lib.extend•••This preserves the nixosSystem function if another flake uses lib.extend itself. Fabian Möller2020-07-231-4/+4
|/
* flake.nix: Remove edition fieldEelco Dolstra2020-06-081-2/+0
* 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. Eelco Dolstra2020-04-031-1/+0
* 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"; }; Eelco Dolstra2020-04-021-1/+2
* flake.nix: Add noteEelco Dolstra2020-02-101-0/+2
* Fix 'nix flake check'Eelco Dolstra2020-02-101-2/+2
* flake.nix: Handle missing rev attribute•••Dirty trees no longer set 'rev', so we need to handle this. Eelco Dolstra2020-02-051-2/+2
* flake.nix: Support more systemsEelco Dolstra2020-02-051-1/+8
* flake.nix: Remove packages, builders outputsEelco Dolstra2020-02-051-10/+1
* epoch -> editionEelco Dolstra2020-02-051-1/+1
* Export nixosModules.notDetectedEelco Dolstra2020-02-051-0/+4
* nixosSystem: Automatically set version suffix from flake•••E.g. $ nixos-version 19.03.20190913.af5eb77 (Koi) Eelco Dolstra2020-02-051-2/+11
* flake.nix: Remove obsolete name attributeEelco Dolstra2020-02-051-2/+0
* Update flake interfaceEelco Dolstra2020-02-051-4/+4
* Add flake outputs for the manualsEelco Dolstra2020-02-051-4/+14
* flake.nix: Update epochEelco Dolstra2020-02-051-1/+1
* flake.nix: provides -> outputsEelco Dolstra2020-02-051-2/+2
* flake.nix: Add checkEelco Dolstra2020-02-051-0/+4
* legacyPkgs -> legacyPackagesEelco Dolstra2020-02-051-2/+2
* Export a function for building NixOS system configurationsEelco Dolstra2020-02-051-1/+3
* flake.nix: Set system explicitly for now•••Flakes now are evaluated in pure mode, so we can't rely on currentSystem anymore. Eelco Dolstra2020-02-051-1/+1
* Add flake.nixEelco Dolstra2020-02-051-0/+23