2021-08-20 14:45:29 -06:00
|
|
|
{ config, pkgs, inputs, ... }:
|
2021-07-10 13:39:40 -06:00
|
|
|
|
|
|
|
{
|
2021-08-20 14:45:29 -06:00
|
|
|
imports = [
|
|
|
|
inputs.nixos-hardware.nixosModules.raspberry-pi-4
|
|
|
|
];
|
|
|
|
|
2021-07-10 13:39:40 -06:00
|
|
|
hardware.raspberry-pi."4".fkms-3d.enable = true;
|
2021-08-17 23:44:09 -06:00
|
|
|
hardware.raspberry-pi."4".audio.enable = true;
|
2021-07-10 13:39:40 -06:00
|
|
|
|
|
|
|
hardware.enableRedistributableFirmware = true;
|
|
|
|
|
|
|
|
networking.useDHCP = false;
|
|
|
|
networking.interfaces.eth0.useDHCP = true;
|
|
|
|
networking.interfaces.wlan0.useDHCP = true;
|
|
|
|
|
|
|
|
powerManagement.cpuFreqGovernor = "ondemand";
|
|
|
|
|
|
|
|
fileSystems."/" = {
|
|
|
|
device = "/dev/disk/by-label/NIXOS_SD";
|
|
|
|
fsType = "ext4";
|
|
|
|
options = [ "noatime" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
raspberrypi-eeprom
|
|
|
|
];
|
|
|
|
|
2021-08-21 13:06:26 -06:00
|
|
|
environment = {
|
|
|
|
# This allows alacritty to run
|
|
|
|
extraInit = ''
|
|
|
|
export LIBGL_ALWAYS_SOFTWARE=1
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2021-07-10 13:39:40 -06:00
|
|
|
nix = {
|
|
|
|
autoOptimiseStore = true;
|
|
|
|
gc = {
|
|
|
|
automatic = true;
|
|
|
|
dates = "weekly";
|
|
|
|
options = "--delete-older-than 30d";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|