add the raspberry pi 4 configuration things to wheatley

This commit is contained in:
Lillian Violet 2024-12-03 00:33:20 +01:00
parent 526097d53b
commit a974139862

View file

@ -17,6 +17,7 @@
# Import shared configurations # Import shared configurations
../../shared ../../shared
# ../../../disko/wheatley # ../../../disko/wheatley
inputs.nixos-hardware.nixosModules.raspberrt-pi-4
]; ];
boot.loader.generic-extlinux-compatible.enable = true; boot.loader.generic-extlinux-compatible.enable = true;
@ -32,6 +33,10 @@
nixpkgs = { nixpkgs = {
# You can add overlays here # You can add overlays here
overlays = [ overlays = [
(final: super: {
makeModulesClosure = x:
super.makeModulesClosure (x // {allowMissing = true;});
})
]; ];
# Configure your nixpkgs instance # Configure your nixpkgs instance
config = { config = {
@ -40,6 +45,8 @@
}; };
}; };
hardware.raspberry-pi."4".fkms-3d.enable = true;
sops.defaultSopsFile = ./secrets/sops.yaml; sops.defaultSopsFile = ./secrets/sops.yaml;
sops.secrets."wireless.env".mode = "0440"; sops.secrets."wireless.env".mode = "0440";
@ -49,6 +56,7 @@
age age
git git
htop htop
libraspberrypi
]; ];
boot.kernelParams = [ boot.kernelParams = [
@ -78,6 +86,7 @@
}; };
networking.wireless.enable = true; networking.wireless.enable = true;
networking.networkmanager.wifi.powersave = false;
# networking.wireless.environmentFile = config.sops.secrets."wireless.env".path; # networking.wireless.environmentFile = config.sops.secrets."wireless.env".path;
# networking.wireless.networks."KPNAA6306" = { # networking.wireless.networks."KPNAA6306" = {
# hidden = true; # hidden = true;
@ -114,6 +123,8 @@
networking.hostName = "wheatley"; # Define your hostname networking.hostName = "wheatley"; # Define your hostname
boot.kernelPackages = lib.mkForce pkgs.linuxKernel.packages.linux_rpi4;
boot.supportedFilesystems = lib.mkForce ["vfat" "btrfs" "tmpfs"];
networking.wireless.interfaces = ["enu1u1"]; networking.wireless.interfaces = ["enu1u1"];
# powerManagement.cpuFreqGovernor = "powersave"; # powerManagement.cpuFreqGovernor = "powersave";