1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-11 07:10: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;
};
}