nixos-flake/flake.nix

24 lines
678 B
Nix
Raw Normal View History

2023-09-04 06:34:53 +00:00
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.05";
unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs = { self, nixpkgs, unstable }@attrs: {
nixosConfigurations.harrowhark = nixpkgs.lib.nixosSystem rec {
pkgs = import nixpkgs {
inherit system;
config = { allowUnfree = true; };
};
specialArgs = { inherit unstable; };
system = "x86_64-linux";
modules = [
./configuration.nix
# This fixes nixpkgs (for e.g. "nix shell") to match the system nixpkgs
({ config, pkgs, options, ... }: {
nix.registry.nixpkgs.flake = nixpkgs;
})
];
};
};
}