add nix run .#topology
All checks were successful
Build all NixOS Configurations / nix build (push) Successful in 11m11s

This commit is contained in:
Ingolf Wagner 2024-08-30 14:18:21 +07:00
parent 2f3a6ba574
commit ee13d7fa82
Signed by: palo
GPG key ID: 76BF5F1928B9618B

View file

@ -1,7 +1,6 @@
{ inputs, self, ... }:
{
imports = [
#inputs.flake-parts.flakeModules.easyOverlay
inputs.nix-topology.flakeModule
];
@ -9,9 +8,24 @@
# nix build .#topology.x86_64-linux.config.output
perSystem =
{ system, ... }:
{
#overlayAttrs = inputs.nix-topology.overlays.default;
system,
lib,
pkgs,
...
}:
{
apps.topology = {
type = "app";
program = pkgs.writers.writeBashBin "topology" ''
${lib.getExe pkgs.nix} build ${self}#topology.${system}.config.output
echo "result"
ls -lah ./result
ls -lah ./result/
'';
};
topology.pkgs = import inputs.nixpkgs {
inherit system;
overlays = [ inputs.nix-topology.overlays.default ];