nixos-servers/machines/pikvm.nix
2024-10-28 14:12:06 +01:00

28 lines
602 B
Nix

{
machines.pikvm = {
arch = "aarch64-linux";
isRaspberryPi = true;
nixosModule = {
config,
inputs,
lib,
...
}: {
# imports = [ "${inputs.nixpkgs}/nixos/modules/installer/sd-card/sd-image-aarch64.nix" ];
lab = {
storage.profile = "pi";
};
environment.systemPackages = with inputs.nixpkgs.legacyPackages.aarch64-linux; [
(mplayer.override {
v4lSupport = true;
})
ffmpeg
v4l-utils
];
boot.extraModulePackages = with config.boot.kernelPackages; [v4l2loopback];
};
};
}