Skip to content

Commit

Permalink
Add sdcard package
Browse files Browse the repository at this point in the history
  • Loading branch information
wagdav committed Jan 20, 2024
1 parent 8106360 commit beae42e
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 2 deletions.
53 changes: 52 additions & 1 deletion flake.lock

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

13 changes: 12 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
inputs.nixos-hardware.url = "github:NixOS/nixos-hardware";
inputs.cachix-deploy.url = "github:cachix/cachix-deploy-flake";
inputs.nixos-generators.url = "github:nix-community/nixos-generators";

outputs = { self, flake-compat, nixpkgs, nixos-hardware, cachix-deploy }:
outputs = { self, flake-compat, nixpkgs, nixos-generators, nixos-hardware, cachix-deploy }:
let
system = "x86_64-linux";

Expand Down Expand Up @@ -83,6 +84,16 @@
};
};

packages.aarch64-linux = {
sdcard = nixos-generators.nixosGenerate {
system = "aarch64-linux";
format = "sd-aarch64";
modules = [
./host-rp3.nix
];
};
};

checks.${system} = with pkgs; {
nixpkgs-fmt = runCommand "nixpkgs-fmt"
{
Expand Down

0 comments on commit beae42e

Please sign in to comment.