feat: update flakes

This commit is contained in:
2024-10-26 19:07:57 -04:00
parent 31cb308044
commit 4f2cfaa778
8 changed files with 42 additions and 50 deletions

View File

@@ -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;