oizys/flake.nix

28 lines
721 B
Nix
Raw Normal View History

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