2023-06-27 15:29:53 -05:00
|
|
|
{ agenix, pkgs, ... }: rec {
|
2023-06-26 16:19:14 -05:00
|
|
|
dev = pkgs.mkShell {
|
|
|
|
buildInputs = [
|
|
|
|
agenix.packages.x86_64-linux.default
|
|
|
|
(pkgs.nixos { }).nixos-rebuild
|
|
|
|
pkgs.terraform
|
2023-06-27 15:29:53 -05:00
|
|
|
packages.x86_64-linux.deploy
|
|
|
|
packages.x86_64-linux.format
|
2023-06-26 16:19:14 -05:00
|
|
|
];
|
|
|
|
shellHook = ''
|
|
|
|
'';
|
|
|
|
};
|
2023-06-27 15:07:48 -05:00
|
|
|
|
|
|
|
packages = {
|
|
|
|
x86_64-linux = {
|
|
|
|
deploy = pkgs.writeShellScriptBin "deploy" ''
|
2023-06-27 19:41:33 -05:00
|
|
|
nixos-rebuild switch --target-host root@192.168.0.130 --build-host root@192.168.0.130 --flake .#eve-psr-nix0 ;
|
2023-06-27 15:07:48 -05:00
|
|
|
'';
|
|
|
|
format = pkgs.writeShellScriptBin "format" ''
|
|
|
|
nix fmt ./*.nix;
|
|
|
|
for i in */; do
|
|
|
|
nix fmt $i/*.nix;
|
|
|
|
done;
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
2023-06-26 16:19:14 -05:00
|
|
|
}
|