flake: create generator for aarch64 sdcard image

This commit is contained in:
LavaDesu 2022-08-08 18:18:18 +07:00
parent a4294aefbc
commit 2c733de3b3
Signed by: cilly
GPG key ID: 6500251E087653C9
6 changed files with 133 additions and 20 deletions

View file

@ -1,11 +1,15 @@
{ config, inputs, pkgs, ... }: {
{ config, inputs, lib, pkgs, ... }: {
imports = [
inputs.nixos-hardware.nixosModules.raspberry-pi-4
];
hardware.raspberry-pi."4".fkms-3d.enable = true;
boot.kernel.sysctl = {
"kernel.core_pattern" = "|/bin/false";
"kernel.sysrq" = 1;
boot = {
initrd.kernelModules = [ "overlay" ];
supportedFilesystems = lib.mkForce [ "btrfs" "vfat" ];
kernel.sysctl = {
"kernel.core_pattern" = "|/bin/false";
"kernel.sysrq" = 1;
};
};
}