refactor: generalize flake input injection
This commit is contained in:
parent
c559bf629f
commit
5965922b57
2 changed files with 34 additions and 12 deletions
|
|
@ -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;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue