forked from mirrors_public/oddlama_nix-config
feat: add odroid-h3 host "ward"
This commit is contained in:
parent
7a8ffd9a2e
commit
c5a5cf14ba
9 changed files with 150 additions and 59 deletions
46
hosts/ward/default.nix
Normal file
46
hosts/ward/default.nix
Normal 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
16
hosts/ward/fs.nix
Normal 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
22
hosts/ward/net.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue