export nix module
This commit is contained in:
parent
fee174ec05
commit
e288b3a63b
6 changed files with 522 additions and 4 deletions
32
flake.nix
32
flake.nix
|
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue