oizys/flake.nix

26 lines
628 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-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-10-24 22:55:15 -05:00
];
};
};
};
}