Files
nPanel/flake.nix
T

29 lines
864 B
Nix

{
description = "nPanel - NixOS 上的单机 Docker 服务器运维面板";
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 = import nixpkgs { inherit system; };
in
{
default = pkgs.callPackage ./nix/package.nix { src = self; };
npanel = self.packages.${system}.default;
npanel-agent = self.packages.${system}.default.passthru.agent;
npanel-frontend = self.packages.${system}.default.passthru.frontend;
});
nixosModules.default = import ./nix/module.nix { inherit self; };
nixosModules.nPanel = self.nixosModules.default;
};
}