nix-conf/systems/pi4/default.nix

44 lines
755 B
Nix
Raw Normal View History

2024-07-10 23:02:54 +02:00
{
modulesPath,
lib,
nixos-hardware,
...
}:
2024-04-15 07:48:41 +02:00
{
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
nixos-hardware.nixosModules.raspberry-pi-4
];
boot = {
2024-07-10 23:02:54 +02:00
initrd = {
availableKernelModules = [ "xhci_pci" ];
};
loader = {
generic-extlinux-compatible.enable = true;
};
2024-04-15 07:48:41 +02:00
};
hardware.raspberry-pi."4".fkms-3d.enable = true;
jopejoe1 = {
bluetooth.enable = true;
local.enable = true;
nix.enable = true;
user = {
jopejoe1.enable = true;
root.enable = true;
};
ssh.enable = true;
};
services.openssh.settings.PermitRootLogin = lib.mkForce "yes";
networking = {
useDHCP = lib.mkDefault true;
};
powerManagement.cpuFreqGovernor = "ondemand";
}