RPI image
This commit is contained in:
parent
c36a9c88e3
commit
0464f2bcee
2 changed files with 4 additions and 5 deletions
|
@ -79,7 +79,7 @@
|
||||||
};
|
};
|
||||||
imageConfigurations = {
|
imageConfigurations = {
|
||||||
nixos-linode-img = libx.mkMinImage { hostname = "nixos-linode-img"; format = "linode"; };
|
nixos-linode-img = libx.mkMinImage { hostname = "nixos-linode-img"; format = "linode"; };
|
||||||
nixos-rpi4-img = libx.mkRpiImage { hostname = "nixos-rpi4-img"; format = "sd-aarch64"; };
|
nixos-rpi4-img = libx.mkRpiImage { hostname = "nixos-rpi4-img"; };
|
||||||
nixos-iso-console = libx.mkImage { hostname = "nixos-iso-console"; format = "iso"; };
|
nixos-iso-console = libx.mkImage { hostname = "nixos-iso-console"; format = "iso"; };
|
||||||
nixos-iso-desktop = libx.mkImage { hostname = "nixos-iso-desktop"; format = "iso"; desktop = "gnome"; };
|
nixos-iso-desktop = libx.mkImage { hostname = "nixos-iso-desktop"; format = "iso"; desktop = "gnome"; };
|
||||||
};
|
};
|
||||||
|
|
|
@ -77,15 +77,14 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
# Combines mkHost and mkHome for image building
|
# Raspberry Pi SD Card image creator
|
||||||
mkRpiImage = {
|
mkRpiImage = {
|
||||||
hostname ,
|
hostname ,
|
||||||
username ? "albert",
|
username ? "albert",
|
||||||
desktop ? null,
|
desktop ? null,
|
||||||
platform ? "x86_64-linux",
|
platform ? "aarch64-linux",
|
||||||
gpu ? null,
|
gpu ? null,
|
||||||
theme ? "default",
|
theme ? "default"
|
||||||
format
|
|
||||||
}: inputs.nixpkgs.lib.nixosSystem {
|
}: inputs.nixpkgs.lib.nixosSystem {
|
||||||
specialArgs = { inherit inputs outputs desktop hostname username stateVersion hmStateVersion gpu platform theme format; };
|
specialArgs = { inherit inputs outputs desktop hostname username stateVersion hmStateVersion gpu platform theme format; };
|
||||||
system = platform;
|
system = platform;
|
||||||
|
|
Loading…
Reference in a new issue