Skip to content

Commit

Permalink
Add pi4-hw flake input
Browse files Browse the repository at this point in the history
  • Loading branch information
ritiek committed Oct 27, 2024
1 parent 6a51a67 commit b0174eb
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 6 deletions.
16 changes: 16 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 10 additions & 6 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@
# url = "github:nix-community/raspberry-pi-nix";
# inputs.nixpkgs.follows = "nixpkgs";
# };

nixos-hardware.url = "github:NixOS/nixos-hardware";
};

outputs = { self, ... }@inputs: {
Expand Down Expand Up @@ -118,17 +120,19 @@
system = "aarch64-linux";
modules = [
./machines/nixypi
inputs.nixos-hardware.nixosModules.raspberry-pi-4
];
specialArgs = { inherit inputs; };
};

nixosConfigurations.stashy = inputs.nixpkgs.lib.nixosSystem rec {
system = "aarch64-linux";
modules = [
# Use this flake input, for some reason haves the kernel compile from source
# Using this flake input, for some reason haves the kernel compile from source
# which takes a loong time and isn't practical.
# inputs.raspberry-pi-nix.nixosModules.raspberry-pi { raspberry-pi-nix.board = "bcm2711"; }
./machines/stashy
inputs.nixos-hardware.nixosModules.raspberry-pi-4
];
specialArgs = { inherit inputs; };
};
Expand All @@ -143,11 +147,11 @@
sshUser = "root";
};

deploy.nodes.nixypi = {
hostname = "nixypi.lion-zebra.ts.net";
deploy.nodes.stashy = {
hostname = "stashy.lion-zebra.ts.net";
profiles.system = {
user = "root";
path = inputs.deploy-rs.lib.aarch64-linux.activate.nixos self.nixosConfigurations.nixypi;
path = inputs.deploy-rs.lib.aarch64-linux.activate.nixos self.nixosConfigurations.stashy;
};
sshUser = "root";
};
Expand Down Expand Up @@ -206,7 +210,7 @@

nixypi-sd-installer = inputs.nixos-generators.nixosGenerate {
system = "aarch64-linux";
modules = [ ./machines/nixypi ];
modules = [ ./machines/nixypi inputs.nixos-hardware.nixosModules.raspberry-pi-4 ];
specialArgs = { inherit inputs; };
format = "sd-aarch64-installer";
};
Expand All @@ -220,7 +224,7 @@

stashy-sd-installer = inputs.nixos-generators.nixosGenerate {
system = "aarch64-linux";
modules = [ ./machines/stashy ];
modules = [ ./machines/stashy inputs.nixos-hardware.nixosModules.raspberry-pi-4 ];
specialArgs = { inherit inputs; };
format = "sd-aarch64-installer";
};
Expand Down

0 comments on commit b0174eb

Please sign in to comment.