oizys/flake.nix
Cole Mickens daf9133c35
add nur
2020-11-07 23:01:15 -08:00

27 lines
721 B
Nix

{
description = "An example NixOS configuration";
inputs = {
nixpkgs = { url = "github:nixos/nixpkgs/nixos-unstable"; };
nur = { url = "github:nix-community/NUR"; };
};
outputs = inputs:
/* ignore:: */ let ignoreme = ({config,lib,...}: with lib; { system.nixos.revision = mkForce null; system.nixos.versionSuffix = mkForce "pre-git"; }); in
{
nixosConfigurations = {
mysystem = inputs.nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
(import ./configuration.nix)
/* ignore */ ignoreme # ignore this; don't include it; it is a small helper for this example
];
specialArgs = { inherit inputs; };
};
};
};
}