feat: update flakes
This commit is contained in:
19
flake.nix
19
flake.nix
@@ -43,25 +43,6 @@
|
||||
};
|
||||
};
|
||||
|
||||
packages.aarch64-darwin = {
|
||||
setup-vm = let
|
||||
pkgs = import nixpkgs { system = "aarch64-darwin"; };
|
||||
script-name = "setup-vm";
|
||||
src = builtins.readFile ./nixos/proxmox/setup-vm.sh;
|
||||
script = (pkgs.writeScriptBin script-name src).overrideAttrs(old: {
|
||||
buildCommand = "${old.buildCommand}\n patchShebangs $out";
|
||||
});
|
||||
buildInputs = with pkgs; [
|
||||
gum
|
||||
agenix.packages.aarch64-darwin.default
|
||||
];
|
||||
in pkgs.symlinkJoin {
|
||||
name = script-name;
|
||||
paths = [ script ] ++ buildInputs;
|
||||
nativeBuildInputs = with pkgs; [makeWrapper];
|
||||
postBuild = "wrapProgram $out/bin/${script-name} --prefix PATH : $out/bin";
|
||||
};
|
||||
};
|
||||
} // flake-utils.lib.eachDefaultSystem (system:
|
||||
let pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
|
||||
Reference in New Issue
Block a user