export nix module

This commit is contained in:
Yisroel Baum 2026-07-02 01:31:58 +03:00
parent fee174ec05
commit e288b3a63b
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
6 changed files with 522 additions and 4 deletions

View file

@ -4,11 +4,32 @@
utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, utils }:
utils.lib.eachDefaultSystem (system:
outputs =
{
self,
nixpkgs,
utils,
}:
let
nixosModule = import ./nix/nixos-module.nix;
in
utils.lib.eachDefaultSystem (
system:
let
pkgs = nixpkgs.legacyPackages.${system};
in {
packages = import ./nix/packages { inherit pkgs; };
in
{
inherit packages;
checks = {
inherit (packages) backend frontend;
module-eval = pkgs.callPackage ./nix/checks/module-eval.nix {
inherit nixpkgs system;
module = nixosModule;
};
};
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [
onefetch
@ -44,5 +65,8 @@
'';
};
}
);
)
// {
nixosModules.default = nixosModule;
};
}