1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-10 23:00:39 +02:00

feat: add odroid-h3 host "ward"

This commit is contained in:
oddlama 2023-01-05 02:42:46 +01:00
parent 7a8ffd9a2e
commit c5a5cf14ba
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
9 changed files with 150 additions and 59 deletions

46
hosts/ward/default.nix Normal file
View file

@ -0,0 +1,46 @@
{
nixos-hardware,
pkgs,
...
}: {
imports = [
nixos-hardware.common-cpu-intel
nixos-hardware.common-pc-ssd
../../modules/core
../../modules/efi.nix
../../modules/zfs.nix
../../users/root
./fs.nix
./net.nix
];
boot = {
initrd.availableKernelModules = ["xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" "sdhci_pci"];
kernelModules = ["kvm-intel"];
tmpOnTmpfs = true;
};
console = {
font = "ter-v28n";
keyMap = "de-latin1-nodeadkeys";
packages = with pkgs; [terminus_font];
};
environment.systemPackages = with pkgs; [wireguard-tools powertop];
hardware = {
enableRedistributableFirmware = true;
enableAllFirmware = true;
};
powerManagement.cpuFreqGovernor = "powersave";
services = {
fwupd.enable = true;
smartd.enable = true;
};
}

16
hosts/ward/fs.nix Normal file
View file

@ -0,0 +1,16 @@
{
fileSystems = {
"/" = {
device = "rpool/root/nixos";
fsType = "zfs";
options = ["zfsutil" "X-mount.mkdir"];
};
"/boot" = {
device = "/dev/disk/by-uuid/10E6-553F";
fsType = "vfat";
};
};
swapDevices = [];
}

22
hosts/ward/net.nix Normal file
View file

@ -0,0 +1,22 @@
{
networking = {
hostId = "49ce3b71";
hostName = "ward";
wireless.iwd.enable = true;
};
systemd.network.networks = {
enp1s0 = {
DHCP = "yes";
matchConfig.MACAddress = "00:00:00:00:00:00";
dhcpV4Config.RouteMetric = 10;
dhcpV6Config.RouteMetric = 10;
};
enp2s0 = {
DHCP = "yes";
matchConfig.MACAddress = "00:00:00:00:00:00";
dhcpV4Config.RouteMetric = 10;
dhcpV6Config.RouteMetric = 10;
};
};
}