Skip to content

Commit

Permalink
tetra-zw: update to new hardware
Browse files Browse the repository at this point in the history
  • Loading branch information
marenz2569 committed Aug 15, 2024
1 parent 391cdc3 commit 638161b
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 13 deletions.
17 changes: 17 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@
inputs.nixpkgs.follows = "nixpkgs";
};

# nixos hardware for nixos 23.11
nixos-hardware.url = "git+https://github.com/NixOS/nixos-hardware.git?rev=9e848e173ca83adf884815c66edc08652ef9ade8";

## TLMS stuff below
trekkie = {
url = "github:tlm-solutions/trekkie";
Expand Down Expand Up @@ -130,6 +133,7 @@
, telegram-decoder
, trekkie
, chemo
, nixos-hardware
, ...
}:
let
Expand Down Expand Up @@ -258,6 +262,7 @@
specialArgs = { inherit inputs self; registry = registry.tetra-zw; };
modules = [
sops-nix.nixosModules.sops
nixos-hardware.nixosModules.lenovo-thinkpad-t14-amd-gen1

./modules/TLMS
./hosts/tetra-zw
Expand Down
44 changes: 34 additions & 10 deletions hardware/tetra-zw.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,44 @@
./disk-module
];
networking = {
interfaces.enp5s0.useDHCP = lib.mkDefault true;
interfaces.enp6s0.useDHCP = lib.mkDefault true;
useDHCP = lib.mkDefault true;
};

networking.useNetworkd = true;
networking.wireguard.enable = true;

deployment-TLMS.net.iface.uplink = {
name = lib.mkDefault "enp5s0";
name = lib.mkDefault "enp6s0";
useDHCP = lib.mkDefault true;
};

boot.tmp.tmpfsSize = "25%";

boot.kernelModules = [ "kvm-intel" "r8168" ];
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
boot.initrd.availableKernelModules = [ "xhci_pci" "usbhid" "usb_storage" "sd_mod" "sdhci_pci" "sdhci_acpi" ];
boot.initrd.kernelModules = [ ];
boot.initrd.availableKernelModules = [
"xhci_pci"
"nvme"
"ehci_pci"
"ahci"
"uas"
"usb_storage"
"sd_mod"
"sr_mod"
"rtsx_pci_sdmmc"
"aesni_intel"
"cryptd"
"essiv"
"r8169"
];
boot.kernelModules = [ "kvm-amd" ];
boot.kernelParams = [ "btusb.enable_autosuspend=n" ];
boot.extraModulePackages = [ ];
# some whoopsie in kernel 6.1.x maybe?
boot.kernelPackages = pkgs.linuxKernel.packages.linux_5_15;
boot.supportedFilesystems = [ ];

hardware.cpu.amd.updateMicrocode =
lib.mkDefault config.hardware.enableRedistributableFirmware;

boot.kernelPackages = pkgs.linuxKernel.packages.linux_6_6;

swapDevices = [ ];
fileSystems."/" =
Expand All @@ -37,6 +54,13 @@
fsType = "ext4";
};

boot.loader.grub.enable = true;
boot.loader.grub.device = "/dev/sda";
fileSystems."/boot" =
{
device = "/dev/disk/by-label/ESP";
fsType = "vfat";
};

boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.loader.systemd-boot.configurationLimit = 1;
}
3 changes: 0 additions & 3 deletions hosts/tetra-zw/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,4 @@

powerManagement.enable = true;
powerManagement.cpuFreqGovernor = "ondemand";
# 2.8-3.0GHz
powerManagement.cpufreq.min = 2800000;
powerManagement.cpufreq.max = 3000000;
}

0 comments on commit 638161b

Please sign in to comment.