refactor(deploy-rpi5): switch to nixos-hardware module
This commit is contained in:
parent
a48005eec4
commit
7501370ae9
3 changed files with 30 additions and 67 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue