Fixes and more shell
This commit is contained in:
@@ -2,3 +2,4 @@ charts
|
|||||||
*.lock
|
*.lock
|
||||||
.agent-shell
|
.agent-shell
|
||||||
result
|
result
|
||||||
|
.direnv
|
||||||
|
|||||||
@@ -101,5 +101,9 @@
|
|||||||
# };
|
# };
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
devShells = nixpkgs.lib.genAttrs [ "x86_64-linux" "aarch64-linux" ] (system:
|
||||||
|
(import ./shells) { pkgs = nixpkgs.legacyPackages.${system}; }
|
||||||
|
);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
{pkgs} @ args: {
|
||||||
|
default = import ./defaultShell.nix args;
|
||||||
|
}
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
{pkgs} @ args:
|
||||||
|
pkgs.mkShell {
|
||||||
|
buildInputs = with pkgs; [
|
||||||
|
alejandra
|
||||||
|
(pkgs.writeShellScriptBin "homey-deploy-rpi-main" ''
|
||||||
|
nixos-rebuild switch \
|
||||||
|
--flake .#pi-main \
|
||||||
|
--target-host admin@192.168.1.100 \
|
||||||
|
--build-host admin@192.168.1.100 \
|
||||||
|
--sudo
|
||||||
|
'')
|
||||||
|
(pkgs.writeShellScriptBin "homey-build-rpi-main" ''
|
||||||
|
sudo nixos-rebuild switch \
|
||||||
|
--flake .#pi-main
|
||||||
|
'')
|
||||||
|
];
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user