nixos-flake/flake.nix

25 lines
736 B
Nix
Raw Normal View History

2023-09-04 06:34:53 +00:00
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.05";
2023-09-04 06:35:04 +00:00
#nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
2023-09-04 06:34:53 +00:00
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;
})
];
};
};
}