fix(systems): nixos.hw.metal for aarch64 SBCs

This commit is contained in:
arcnmx 2025-01-27 15:24:32 -08:00
parent b4dbcc71f0
commit 9c8f0eca9a
4 changed files with 10 additions and 1 deletions

View file

@ -5,10 +5,11 @@
lib, lib,
... ...
}: let }: let
inherit (lib.modules) mkIf;
inherit (gensokyo-zone.lib) mkAlmostOptionDefault; inherit (gensokyo-zone.lib) mkAlmostOptionDefault;
in { in {
boot = { boot = {
loader = { loader = mkIf (config.nixpkgs.system == "x86_64-linux") {
systemd-boot.enable = mkAlmostOptionDefault true; systemd-boot.enable = mkAlmostOptionDefault true;
efi.canTouchEfiVariables = mkAlmostOptionDefault true; efi.canTouchEfiVariables = mkAlmostOptionDefault true;
}; };

6
nixos/hw/sbc.nix Normal file
View file

@ -0,0 +1,6 @@
_: {
imports = [
./headless.nix
./metal.nix
];
}

View file

@ -10,6 +10,7 @@ in {
inherit (meta) nixos; inherit (meta) nixos;
in [ in [
nixos.sops nixos.sops
nixos.hw.sbc
nixos.base nixos.base
nixos.tailscale nixos.tailscale
nixos.nginx nixos.nginx

View file

@ -10,6 +10,7 @@
in [ in [
(modulesPath + "/installer/sd-card/sd-image.nix") (modulesPath + "/installer/sd-card/sd-image.nix")
nixos.base nixos.base
nixos.hw.sbc
nixos.sops nixos.sops
nixos.tailscale nixos.tailscale
nixos.klipper nixos.klipper