2023-03-27 16:32:12 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
modulesPath,
|
|
|
|
lib,
|
|
|
|
nixos-hardware,
|
|
|
|
system,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
networking.hostName = "devterm";
|
|
|
|
networking.hostId = "b83a2c93";
|
|
|
|
|
|
|
|
imports = [
|
|
|
|
./desktop.nix
|
|
|
|
nixos-hardware.nixosModules.raspberry-pi-4
|
|
|
|
];
|
|
|
|
|
|
|
|
hardware.raspberry-pi."4" = {
|
2023-03-28 04:42:14 +00:00
|
|
|
#audio.enable = true;
|
2023-03-27 16:32:12 +00:00
|
|
|
dwc2.enable = true;
|
2023-03-28 04:42:14 +00:00
|
|
|
#i2c0.enable = true;
|
|
|
|
#i2c1.enable = true;
|
|
|
|
#fkms-3d.enable = true;
|
|
|
|
apply-overlays-dtmerge.enable = true;
|
2023-03-27 16:32:12 +00:00
|
|
|
pwm0.enable = true;
|
2023-03-28 04:42:14 +00:00
|
|
|
#tc358743.enable = true;
|
2023-03-27 16:32:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
fileSystems = {
|
|
|
|
"/" = {
|
|
|
|
device = "/dev/disk/by-label/NIXOS_SD";
|
|
|
|
fsType = "ext4";
|
|
|
|
options = ["noatime"];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
boot.supportedFilesystems = lib.mkForce ["ext4" "vfat"];
|
|
|
|
system.stateVersion = "22.11";
|
|
|
|
nix.settings.cores = 4;
|
|
|
|
networking.networkmanager.enable = true;
|
|
|
|
users.users.darkkirb.extraGroups = ["networkmanager"];
|
|
|
|
nix.settings.max-jobs = 4;
|
|
|
|
nix.daemonCPUSchedPolicy = "idle";
|
|
|
|
nix.daemonIOSchedClass = "idle";
|
|
|
|
services.joycond.enable = true;
|
|
|
|
hardware.bluetooth.enable = true;
|
|
|
|
services.blueman.enable = true;
|
|
|
|
services.tailscale.useRoutingFeatures = "client";
|
|
|
|
}
|