✨ add nix run .#topology
This commit is contained in:
parent
2f3a6ba574
commit
ee13d7fa82
1 changed files with 17 additions and 3 deletions
|
@ -1,7 +1,6 @@
|
||||||
{ inputs, self, ... }:
|
{ inputs, self, ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
#inputs.flake-parts.flakeModules.easyOverlay
|
|
||||||
inputs.nix-topology.flakeModule
|
inputs.nix-topology.flakeModule
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -9,9 +8,24 @@
|
||||||
# nix build .#topology.x86_64-linux.config.output
|
# nix build .#topology.x86_64-linux.config.output
|
||||||
|
|
||||||
perSystem =
|
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 {
|
topology.pkgs = import inputs.nixpkgs {
|
||||||
inherit system;
|
inherit system;
|
||||||
overlays = [ inputs.nix-topology.overlays.default ];
|
overlays = [ inputs.nix-topology.overlays.default ];
|
||||||
|
|
Loading…
Reference in a new issue