kiosk/flake.nix

31 lines
814 B
Nix
Raw Normal View History

2024-11-15 18:26:11 -05:00
{
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";
2024-11-15 18:26:11 -05:00
};
outputs = { nixpkgs, rpi-nix, nixos-hardware, ... }: {
2024-11-15 18:26:11 -05:00
nixosConfigurations.kiosk = nixpkgs.lib.nixosSystem {
system = "aarch64-linux";
modules = [
./base.nix
./kiosk.nix
2024-12-07 16:44:37 -05:00
./sd-image
2024-11-15 18:26:11 -05:00
rpi-nix.nixosModules.raspberry-pi
nixos-hardware.nixosModules.raspberry-pi-4
({ lib, pkgs, ... }: {
2024-11-15 18:26:11 -05:00
sdImage.compressImage = false;
nixpkgs.buildPlatform = "x86_64-linux";
boot.kernelPackages = lib.mkForce pkgs.linuxKernel.packages.linux_rpi4;
})
2024-11-15 18:26:11 -05:00
];
};
};
}