fixes and formatting

This commit is contained in:
Henry Hiles 2025-09-23 09:17:26 -04:00
commit 80cf48f1e8
No known key found for this signature in database
71 changed files with 746 additions and 1110 deletions

View file

@ -1,10 +1,10 @@
{
boot.binfmt.emulatedSystems = ["aarch64-linux"];
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
nixpkgs.overlays = [
(_: super: {
# Because of https://github.com/NixOS/nixpkgs/pull/378579
qemu = super.qemu.overrideAttrs (old: {
patches = (old.patches or []) ++ [./qemu.patch];
patches = (old.patches or [ ]) ++ [ ./qemu.patch ];
});
})
];

View file

@ -7,15 +7,23 @@
pkgs,
modulesPath,
...
}: {
}:
{
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = ["nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod"];
boot.initrd.kernelModules = [];
boot.kernelModules = ["kvm-amd"];
boot.extraModulePackages = [];
boot.initrd.availableKernelModules = [
"nvme"
"xhci_pci"
"ahci"
"usb_storage"
"usbhid"
"sd_mod"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" = {
device = "/dev/disk/by-uuid/7d01741d-d58f-49d4-b3a2-4d37d953873d";
@ -27,7 +35,7 @@
fsType = "vfat";
};
swapDevices = [];
swapDevices = [ ];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's

View file

@ -2,14 +2,19 @@
pkgs,
lib,
...
}: let
}:
let
setvcp = "${lib.meta.getExe pkgs.ddcutil} setvcp D6";
in {
in
{
hardware.i2c.enable = true;
systemd.services = {
monitor-off = rec {
script = "${setvcp} 05";
wantedBy = ["sleep.target" "final.target"];
wantedBy = [
"sleep.target"
"final.target"
];
before = wantedBy;
serviceConfig.Type = "oneshot";
@ -18,7 +23,10 @@ in {
monitor-on = rec {
script = "${setvcp} 01";
wantedBy = ["sleep.target" "multi-user.target"];
wantedBy = [
"sleep.target"
"multi-user.target"
];
after = wantedBy;
};
};

View file

@ -2,10 +2,14 @@
pkgs,
config,
...
}: {
boot.blacklistedKernelModules = ["xpad"];
boot.extraModulePackages = [config.boot.kernelPackages.hid-tmff2];
}:
{
boot.blacklistedKernelModules = [ "xpad" ];
boot.extraModulePackages = [ config.boot.kernelPackages.hid-tmff2 ];
environment.systemPackages = with pkgs; [oversteer linuxConsoleTools];
services.udev.packages = [pkgs.oversteer];
environment.systemPackages = with pkgs; [
oversteer
linuxConsoleTools
];
services.udev.packages = [ pkgs.oversteer ];
}