refactor: generalize flake input injection

This commit is contained in:
Kiana Sheibani 2025-04-01 22:19:54 -04:00
parent c559bf629f
commit 5965922b57
Signed by: toki
GPG key ID: 6CB106C25E86A9F7
2 changed files with 34 additions and 12 deletions

View file

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