Add zfs support to redmond, update to wg-quick

This commit is contained in:
Jimbo 2024-12-22 17:26:45 -05:00
parent 06e1964f7d
commit d183a4dc32
5 changed files with 23 additions and 11 deletions

View file

@ -9,8 +9,10 @@
../../modules/system ../../modules/system
]; ];
networking.hostName = "envy"; networking = {
networking.wg-quick.interfaces.wgc.address = [ "10.100.0.25/24" ]; hostName = "envy";
wg-quick.interfaces.wgc.address = [ "10.100.0.25/24" ];
};
system = { system = {
lanzaboote.enable = true; lanzaboote.enable = true;

View file

@ -1,6 +1,8 @@
# nixos-generate-config --root ./ --no-filesystems # nixos-generate-config --root ./ --no-filesystems
{ config, lib, ... }: { config, lib, modulesPath, ... }:
{ {
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
boot.initrd.availableKernelModules = [ "xhci_pci" "sr_mod" ]; boot.initrd.availableKernelModules = [ "xhci_pci" "sr_mod" ];
boot.initrd.kernelModules = [ "dm-snapshot" ]; boot.initrd.kernelModules = [ "dm-snapshot" ];

View file

@ -2,7 +2,6 @@
{ {
boot = { boot = {
kernelPackages = pkgs.linuxPackages_latest; kernelPackages = pkgs.linuxPackages_latest;
kernel.sysctl."vm.max_map_count" = 2147483642;
kernelParams = [ kernelParams = [
"radeon.cik_support=0" "radeon.cik_support=0"
"amdgpu.cik_support=1" "amdgpu.cik_support=1"

View file

@ -1,4 +1,4 @@
{ config, ... }: { config, lib, ... }:
{ {
imports = [ imports = [
./boot ./boot
@ -8,10 +8,17 @@
../../modules/system ../../modules/system
]; ];
system.lanzaboote.enable = true; networking = {
hostName = "redmond";
hostId = "ae713850";
wg-quick.interfaces.wgc.address = [ "10.100.0.23/24" ];
};
system.wireguard.client.enable = true; system = {
networking.wireguard.interfaces.wgc.ips = [ "10.100.0.23/24" ]; lanzaboote.enable = true;
wireguard.client.enable = true;
stateVersion = "24.05";
};
networking.hostName = "redmond"; environment.sessionVariables.WLR_RENDERER = lib.mkForce "gles2";
} }

View file

@ -1,6 +1,8 @@
{ config, lib, ... }: # nixos-generate-config --root ./ --no-filesystems
{ config, lib, modulesPath, ... }:
{ {
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "ehci_pci" "sd_mod" "sr_mod" "sdhci_pci" "rtsx_usb_sdmmc" ]; boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "ehci_pci" "sd_mod" "sr_mod" "sdhci_pci" "rtsx_usb_sdmmc" ];
boot.initrd.kernelModules = [ "dm-snapshot" ]; boot.initrd.kernelModules = [ "dm-snapshot" ];
boot.kernelModules = [ "kvm-amd" ]; boot.kernelModules = [ "kvm-amd" ];