2024-03-07 19:27:15 +00:00
|
|
|
{
|
|
|
|
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
2024-03-07 19:31:59 +00:00
|
|
|
inputs.lix = {
|
2024-03-09 07:17:56 +00:00
|
|
|
url = "git+ssh://git@git.lix.systems/lix-project/lix.git";
|
2024-03-07 19:31:59 +00:00
|
|
|
flake = false;
|
|
|
|
};
|
2024-03-07 19:27:15 +00:00
|
|
|
inputs.flake-utils.url = "github:numtide/flake-utils";
|
2024-03-09 00:48:11 +00:00
|
|
|
inputs.flake-compat.url = "git+ssh://git@git.lix.systems/lix-project/flake-compat";
|
2024-03-25 00:14:18 +00:00
|
|
|
inputs.flakey-profile.url = "https://github.com/lf-/flakey-profile";
|
2024-03-07 19:27:15 +00:00
|
|
|
|
2024-03-25 00:14:18 +00:00
|
|
|
outputs = inputs@{ self, nixpkgs, lix, flake-utils, flakey-profile, ... }: {
|
2024-03-18 21:26:45 +00:00
|
|
|
inherit inputs;
|
2024-03-07 19:27:15 +00:00
|
|
|
nixosModules.default = import ./module.nix { inherit lix; };
|
2024-03-18 21:26:45 +00:00
|
|
|
overlays.default = import ./overlay.nix {
|
|
|
|
inherit lix;
|
|
|
|
versionSuffix = "pre${builtins.substring 0 8 lix.lastModifiedDate}-${lix.shortRev}";
|
|
|
|
};
|
2024-03-07 19:27:15 +00:00
|
|
|
} // flake-utils.lib.eachDefaultSystem (system:
|
|
|
|
let
|
|
|
|
pkgs = import nixpkgs {
|
|
|
|
inherit system;
|
|
|
|
overlays = [ self.overlays.default ];
|
|
|
|
};
|
|
|
|
in
|
|
|
|
{
|
2024-03-07 19:38:40 +00:00
|
|
|
inherit pkgs;
|
2024-03-07 19:27:15 +00:00
|
|
|
packages.default = pkgs.nixVersions.nix_2_18;
|
2024-03-07 19:45:59 +00:00
|
|
|
packages.nix-doc = pkgs.nix-doc;
|
2024-03-25 00:14:18 +00:00
|
|
|
|
|
|
|
packages.system-profile = import ./system-profile.nix { inherit pkgs flakey-profile; };
|
2024-03-07 19:27:15 +00:00
|
|
|
});
|
|
|
|
}
|