kiosk/flake.nix
2024-12-07 16:44:37 -05:00

30 lines
814 B
Nix

{
description = "My standard flake-parts devshell template";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
rpi-nix.url = "github:nix-community/raspberry-pi-nix";
nixos-hardware.url = "github:NixOS/nixos-hardware";
};
outputs = { nixpkgs, rpi-nix, nixos-hardware, ... }: {
nixosConfigurations.kiosk = nixpkgs.lib.nixosSystem {
system = "aarch64-linux";
modules = [
./base.nix
./kiosk.nix
./sd-image
rpi-nix.nixosModules.raspberry-pi
nixos-hardware.nixosModules.raspberry-pi-4
({ lib, pkgs, ... }: {
sdImage.compressImage = false;
nixpkgs.buildPlatform = "x86_64-linux";
boot.kernelPackages = lib.mkForce pkgs.linuxKernel.packages.linux_rpi4;
})
];
};
};
}