nixos-config/config/devterm.nix

115 lines
2.7 KiB
Nix
Raw Permalink Normal View History

2024-06-17 19:23:30 +00:00
{
nixos-hardware,
config,
lib,
pkgs,
...
}: {
2024-06-18 18:13:10 +00:00
boot.kernelPackages = pkgs.linuxPackagesFor pkgs.linux-devterm;
2024-07-12 10:44:59 +00:00
boot.kernelParams = ["fbcon=rotate:1"];
2024-06-17 19:23:30 +00:00
networking.hostName = "devterm";
imports = [
./desktop.nix
];
2024-06-18 20:03:08 +00:00
boot.loader = {
grub.enable = lib.mkDefault false;
generic-extlinux-compatible.enable = lib.mkDefault true;
};
boot.initrd = {
includeDefaultModules = false;
availableKernelModules = [
"usbhid"
"usb_storage"
"vc4"
"pcie_brcmstb" # required for the pcie bus to work
"reset-raspberrypi" # required for vl805 firmware to load
"mmc_block"
"usbhid"
"hid_generic"
"panel_cwd686"
"ocp8178_bl"
"ti_adc081c"
];
2024-06-17 19:23:30 +00:00
};
environment.systemPackages = with pkgs; [
libraspberrypi
raspberrypi-eeprom
];
system.stateVersion = "24.05";
fileSystems."/" = {
device = "/dev/mmcblk0p2";
fsType = "btrfs";
options = ["compress=zstd"];
};
fileSystems."/boot" = {
device = "/dev/mmcblk0p1";
fsType = "vfat";
};
security.pam = {
services.login.u2fAuth = lib.mkForce false;
services.swaylock.u2fAuth = lib.mkForce false;
u2f.enable = lib.mkForce false;
services.sddm.u2fAuth = lib.mkForce false;
};
networking.networkmanager.enable = true;
users.users.darkkirb.extraGroups = ["networkmanager"];
2024-09-21 06:40:48 +00:00
hardware.deviceTree.filter = "*rpi*.dtb";
2024-06-27 06:52:51 +00:00
hardware.deviceTree.overlays = [
{
name = "dwc2";
dtsFile = ./devterm/dwc2-overlay.dts;
}
{
name = "cma";
dtsFile = ./devterm/cma-overlay.dts;
}
{
name = "vc4-kms-v3d-pi4";
dtsFile = ./devterm/vc4-kms-v3d-pi4-overlay.dts;
}
{
name = "devterm-pmu";
dtsFile = ./devterm/devterm-pmu-overlay.dts;
}
{
name = "devterm-panel";
dtsFile = ./devterm/devterm-panel-overlay.dts;
}
{
name = "devterm-misc";
dtsFile = ./devterm/devterm-misc-overlay.dts;
}
{
name = "audremap";
dtsFile = ./devterm/audremap-overlay.dts;
}
2024-06-27 07:58:25 +00:00
{
name = "spi";
dtsFile = ./devterm/spi0-overlay.dts;
}
2024-07-01 09:10:08 +00:00
{
name = "devterm-overlay";
dtsFile = ./devterm/devterm-overlay.dts;
}
2024-06-27 06:52:51 +00:00
];
2024-07-01 10:39:20 +00:00
hardware.enableRedistributableFirmware = true;
services.xserver.xkbVariant = lib.mkForce "us";
console.keyMap = lib.mkForce "us";
home-manager.users.darkkirb.wayland.windowManager.sway.config.input."*" = lib.mkForce {
xkb_layout = "us";
xkb_variant = "altgr-intl";
};
2024-09-29 11:19:13 +00:00
boot.initrd.systemd.tpm2.enable = lib.mkForce false;
systemd.tpm2.enable = lib.mkForce false;
2024-10-08 06:32:09 +00:00
services.displayManager = {
autoLogin = {
enable = true;
user = "darkkirb";
};
sddm = {
autoLogin.relogin = true;
};
};
2024-06-17 19:23:30 +00:00
}