refactor(deploy-rpi5): switch to nixos-hardware module

This commit is contained in:
Kiana Sheibani 2025-04-06 02:33:03 -04:00
parent a48005eec4
commit 7501370ae9
Signed by: toki
GPG key ID: 6CB106C25E86A9F7
3 changed files with 30 additions and 67 deletions

View file

@ -1,20 +1,6 @@
{ config, lib, ... }:
{
options.aether.deploy.rpi5 = {
_internal.kernelPackages = lib.mkOption {
type = lib.types.raw;
description = ''
Kernel package to use for Raspberry Pi 5 support.
'';
};
};
config =
let cfg = config.aether.deploy.rpi5;
in {
nixpkgs.system = "aarch64-linux";
boot.kernelPackages = cfg._internal.kernelPackages;
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = false;
};
nixpkgs.system = "aarch64-linux";
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = false;
}