forked from mirrors_public/oddlama_nix-config
feat: add odroid-n2 config
This commit is contained in:
parent
056ce8a553
commit
8c343b8f0f
7 changed files with 54 additions and 48 deletions
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
nixos-hardware,
|
||||
pkgs,
|
||||
|
@ -8,7 +9,6 @@
|
|||
nixos-hardware.common-pc-ssd
|
||||
|
||||
../../modules/core
|
||||
../../modules/efi.nix
|
||||
../../modules/zfs.nix
|
||||
|
||||
../../users/root
|
||||
|
@ -17,18 +17,30 @@
|
|||
./net.nix
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" "sdhci_pci"];
|
||||
boot.loader.grub.enable = false;
|
||||
boot.loader.generic-extlinux-compatible.enable = true;
|
||||
# Technically generic-extlinux-compatible doesn't support initrd secrets
|
||||
# but we are just referring to an existing file in /run using agenix,
|
||||
# so it is fine to pretend that it does have proper support.
|
||||
boot.loader.supportsInitrdSecrets = true;
|
||||
boot.initrd.availableKernelModules = ["usbhid" "usb_storage"]; # "dwmac_meson8b" "meson_dw_hdmi" "meson_drm"];
|
||||
boot.kernelParams = ["console=ttyAML0,115200n8" "console=tty0" "loglevel=7"];
|
||||
boot.kernelPackages = lib.mkForce pkgs.linuxPackages_5_15;
|
||||
console.earlySetup = true;
|
||||
|
||||
# Fails if there are not SMART devices
|
||||
services.smartd.enable = lib.mkForce false;
|
||||
|
||||
powerManagement.cpuFreqGovernor = "powersave";
|
||||
services.home-assistant = {
|
||||
enable = true;
|
||||
extraComponents = ["default_config" "met" "zha"];
|
||||
extraComponents = ["default_config" "met"];
|
||||
openFirewall = true;
|
||||
config = {
|
||||
default_config = {};
|
||||
met = {};
|
||||
};
|
||||
};
|
||||
|
||||
#networking.firewall.allowedTCPPorts = [1883];
|
||||
#services.zigbee2mqtt.enable = true;
|
||||
#services.zigbee2mqtt.settings = {
|
||||
|
|
|
@ -7,10 +7,12 @@
|
|||
};
|
||||
|
||||
"/boot" = {
|
||||
device = "/dev/disk/by-uuid/TODO";
|
||||
fsType = "vfat";
|
||||
device = "/dev/disk/by-uuid/c0bb3411-7af3-4901-83ea-eb2560b11784";
|
||||
fsType = "ext4";
|
||||
};
|
||||
};
|
||||
|
||||
swapDevices = [];
|
||||
swapDevices = [
|
||||
{device = "/dev/disk/by-uuid/a4a5fee7-2b6f-4cec-9ec9-fc4b71e8055a";}
|
||||
];
|
||||
}
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
networking = {
|
||||
hostId = "68a7bba3";
|
||||
hostId = "f7e6acdc";
|
||||
};
|
||||
|
||||
systemd.network.networks = {
|
||||
"10-lan1" = {
|
||||
DHCP = "yes";
|
||||
matchConfig.MACAddress = "TODO";
|
||||
matchConfig.MACAddress = "00:00:00:00:00:00";
|
||||
networkConfig.IPv6PrivacyExtensions = "kernel";
|
||||
dhcpV4Config.RouteMetric = 10;
|
||||
dhcpV6Config.RouteMetric = 10;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue