✨ 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, ... }:
|
||||
{
|
||||
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 ];
|
||||
|
|
Loading…
Reference in a new issue