This commit is contained in:
iFargle 2023-12-14 21:03:33 +09:00
parent 90d2974ee8
commit b64a43328a
2 changed files with 1 additions and 24 deletions

View file

@ -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"; }; nixos-rpi4-img = libx.mkMinImage { hostname = "nixos-rpi4-img"; format = "sd-aarch64"; platform = "aarch64-linux"; };
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"; };
}; };

View file

@ -77,29 +77,6 @@
]; ];
}; };
# Raspberry Pi SD Card image creator
mkRpiImage = {
hostname ,
username ? "albert",
desktop ? null,
platform ? "aarch64-linux",
gpu ? null,
theme ? "default"
}: inputs.nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs outputs desktop hostname username stateVersion hmStateVersion gpu platform theme; };
system = platform;
modules = [
"${inputs.nixpkgs}/nixos/modules/installer/sd-card/sd-image-raspberrypi.nix"
../nixos
inputs.sops-nix.nixosModules.sops
inputs.home-manager.nixosModules.home-manager {
home-manager.extraSpecialArgs = { inherit inputs outputs desktop hostname username hmStateVersion stateVersion gpu platform theme; };
home-manager.users."${username}" = import ../home-manager;
}
];
};
# Small version # Small version
mkMinImage = { mkMinImage = {
hostname , hostname ,