chore: the nix stuff

This commit is contained in:
2026-07-09 07:43:50 +02:00
parent f769d78a14
commit 3a745690a5
4 changed files with 219 additions and 0 deletions
+42
View File
@@ -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;};
};
}