Fixes and more shell

This commit is contained in:
Aner Zakobar
2026-04-25 21:47:42 +03:00
parent 5e82ca5fe0
commit 5e8d5f575a
5 changed files with 26 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
use flake
+1
View File
@@ -2,3 +2,4 @@ charts
*.lock
.agent-shell
result
.direnv
+4
View File
@@ -101,5 +101,9 @@
# };
};
devShells = nixpkgs.lib.genAttrs [ "x86_64-linux" "aarch64-linux" ] (system:
(import ./shells) { pkgs = nixpkgs.legacyPackages.${system}; }
);
};
}
+3
View File
@@ -0,0 +1,3 @@
{pkgs} @ args: {
default = import ./defaultShell.nix args;
}
+17
View File
@@ -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
'')
];
}