feat: add hp_agent as a flake output
This commit is contained in:
parent
c6a7a0faa1
commit
60d399940f
22
flake.nix
22
flake.nix
@ -26,21 +26,21 @@ rec {
|
|||||||
inherit system;
|
inherit system;
|
||||||
overlays = [devshell.overlays.default];
|
overlays = [devshell.overlays.default];
|
||||||
};
|
};
|
||||||
headplane = pkgs.callPackage ./nix/package.nix {};
|
|
||||||
in {
|
in {
|
||||||
formatter = pkgs.alejandra;
|
formatter = pkgs.alejandra;
|
||||||
packages = {
|
packages = rec {
|
||||||
inherit headplane;
|
headplane = pkgs.callPackage ./nix/package.nix {};
|
||||||
|
headplane-agent = pkgs.callPackage ./nix/agent.nix {};
|
||||||
default = headplane;
|
default = headplane;
|
||||||
};
|
};
|
||||||
devShell = pkgs.devshell.mkShell rec {
|
devShell = pkgs.devshell.mkShell rec {
|
||||||
name = description;
|
name = description;
|
||||||
motd = let
|
motd = let
|
||||||
providedPackages =
|
providedPackages = pkgs.lib.concatStringsSep "\n" (
|
||||||
pkgs.lib.fold
|
pkgs.lib.map
|
||||||
(pkg: acc: acc + "\n\t* ${pkgs.lib.getName pkg}")
|
(pkg: "\t* ${pkgs.lib.getName pkg}")
|
||||||
""
|
(pkgs.lib.reverseList packages)
|
||||||
packages;
|
);
|
||||||
in ''
|
in ''
|
||||||
Entered '${description}' development environment.
|
Entered '${description}' development environment.
|
||||||
|
|
||||||
@ -48,6 +48,7 @@ rec {
|
|||||||
${providedPackages}
|
${providedPackages}
|
||||||
'';
|
'';
|
||||||
packages = [
|
packages = [
|
||||||
|
pkgs.go
|
||||||
pkgs.nodejs-slim_22
|
pkgs.nodejs-slim_22
|
||||||
pkgs.pnpm_10
|
pkgs.pnpm_10
|
||||||
pkgs.typescript-language-server
|
pkgs.typescript-language-server
|
||||||
@ -56,7 +57,10 @@ rec {
|
|||||||
};
|
};
|
||||||
})
|
})
|
||||||
// {
|
// {
|
||||||
overlays.default = final: prev: {headplane = final.callPackage ./nix/package.nix {};};
|
overlays.default = final: prev: {
|
||||||
|
headplane = final.callPackage ./nix/package.nix {};
|
||||||
|
headplane-agent = final.callPackage ./nix/agent.nix {};
|
||||||
|
};
|
||||||
nixosModules.headplane = import ./nix/module.nix;
|
nixosModules.headplane = import ./nix/module.nix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user