nix/flake.nix

38 lines
907 B
Nix
Raw Normal View History

2023-03-15 22:44:26 +00:00
{
inputs = {
2023-12-06 12:05:54 +00:00
nixpkgs.url = "nixpkgs/nixos-23.11";
2023-04-16 15:03:08 +00:00
nixpkgs-unstable.url = "nixpkgs/nixos-unstable";
2023-03-15 22:44:26 +00:00
supercolor.url = github:zoe-bat/supercolor;
kaokao.url = github:zoe-bat/kaokao;
2023-04-16 15:03:08 +00:00
tree-sitter-typst.url = github:SeniorMars/tree-sitter-typst;
2023-03-15 22:44:26 +00:00
};
outputs =
{ self
, nixpkgs
2023-04-16 15:03:08 +00:00
, nixpkgs-unstable
2023-03-15 22:44:26 +00:00
, supercolor
, kaokao
2023-04-16 15:03:08 +00:00
, tree-sitter-typst
}@inputs:
let
system = "x86_64-linux";
overlay-unstable = final: prev: {
unstable = import nixpkgs-unstable {
inherit system;
config.allowUnfree = true;
};
};
in
{
2023-03-15 22:44:26 +00:00
nixosConfigurations.queer-utopia = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
2023-04-16 15:03:08 +00:00
({ config, pkgs, ... }: { nixpkgs.overlays = [ overlay-unstable ]; })
2023-03-15 22:44:26 +00:00
./configuration.nix
];
specialArgs = inputs;
};
};
}