Commit 0dcef1c8 authored by fpletz's avatar fpletz 🚧
Browse files

add sdcard image generation for aarch64-linux (i.e. rpis)

parent ee4a4478
......@@ -56,6 +56,42 @@
"url": "https://gitlab.muc.ccc.de/muCCC/api"
}
},
"nixlib": {
"locked": {
"lastModified": 1636849918,
"narHash": "sha256-nzUK6dPcTmNVrgTAC1EOybSMsrcx+QrVPyqRdyKLkjA=",
"owner": "nix-community",
"repo": "nixpkgs.lib",
"rev": "28a5b0557f14124608db68d3ee1f77e9329e9dd5",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "nixpkgs.lib",
"type": "github"
}
},
"nixos-generators": {
"inputs": {
"nixlib": "nixlib",
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1645800619,
"narHash": "sha256-fCamVUDH0+nACV1P/rqtoD4YGon5HhnW3bU/0IjA8qI=",
"owner": "nix-community",
"repo": "nixos-generators",
"rev": "05773c5d1584cebd5eda41675c3456dcabdef42a",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "nixos-generators",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1644951967,
......@@ -76,6 +112,7 @@
"inputs": {
"home-manager": "home-manager",
"muccc-api": "muccc-api",
"nixos-generators": "nixos-generators",
"nixpkgs": "nixpkgs",
"utils": "utils"
}
......
......@@ -8,9 +8,13 @@
muccc-api.inputs.nixpkgs.follows = "nixpkgs";
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
nixos-generators = {
url = "github:nix-community/nixos-generators";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, utils, muccc-api, home-manager, ... }: let
outputs = { self, nixpkgs, utils, muccc-api, home-manager, nixos-generators, ... }: let
supportedSystems = utils.lib.defaultSystems;
in utils.lib.eachSystem supportedSystems (system: let
pkgs = import nixpkgs { inherit system; };
......@@ -20,6 +24,11 @@
packages = with pkgs; [ colmena ];
};
}) // {
sdimage.aarch64-linux = nixos-generators.nixosGenerate {
pkgs = import nixpkgs { system = "aarch64-linux"; };
format = "sd-aarch64";
};
} // {
colmena = {
meta = {
nixpkgs = import nixpkgs { };
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment