mirror of
https://github.com/Melorise/nPanel.git
synced 2026-11-07 14:49:35 +00:00
29 lines
867 B
Nix
29 lines
867 B
Nix
{
|
|
description = "nPanel - NixOS 上的单机 Docker 服务器运维面板";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|