mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
fix(systems): nixos.hw.metal for aarch64 SBCs
This commit is contained in:
parent
b4dbcc71f0
commit
9c8f0eca9a
4 changed files with 10 additions and 1 deletions
|
|
@ -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
6
nixos/hw/sbc.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
_: {
|
||||||
|
imports = [
|
||||||
|
./headless.nix
|
||||||
|
./metal.nix
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue