chore: the nix stuff
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
{
|
||||
description = "AZess - internal Active Directory user setup web application";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-26.05";
|
||||
};
|
||||
|
||||
outputs = {
|
||||
self,
|
||||
nixpkgs,
|
||||
}: let
|
||||
systems = [
|
||||
"x86_64-linux"
|
||||
"aarch64-linux"
|
||||
];
|
||||
forAllSystems = nixpkgs.lib.genAttrs systems;
|
||||
in {
|
||||
packages = forAllSystems (system: let
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
azess = pkgs.callPackage ./nix/package.nix {};
|
||||
in {
|
||||
inherit azess;
|
||||
default = azess;
|
||||
});
|
||||
|
||||
apps = forAllSystems (system: {
|
||||
default = {
|
||||
type = "app";
|
||||
program = "${nixpkgs.lib.getExe self.packages.${system}.default}";
|
||||
};
|
||||
azess = self.apps.${system}.default;
|
||||
});
|
||||
|
||||
checks = forAllSystems (system: {
|
||||
default = self.packages.${system}.default;
|
||||
});
|
||||
|
||||
formatter = forAllSystems (system: nixpkgs.legacyPackages.${system}.alejandra);
|
||||
|
||||
nixosModules.default = import ./nix/module.nix {inherit self;};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user