Move back to linux LTS (remove ddcci workaround)

This commit is contained in:
Andrea Ciceri 2024-11-08 10:16:54 +01:00
parent 8af20e204a
commit 2a213c6b28
Signed by: aciceri
SSH key fingerprint: SHA256:/AagBweyV4Hlfg9u092n8hbHwD5fcB6A3qhDiDA65Rg
2 changed files with 88 additions and 119 deletions

View file

@ -1,44 +1,34 @@
{ { fleetModules, lib, pkgs, ... }: {
fleetModules, imports = fleetModules [
lib, "common"
pkgs, "ssh"
... "ccr"
}: "nix"
{ "networkmanager"
imports = "bluetooth"
fleetModules [ "dbus"
"common" "docker"
"ssh" "fonts"
"ccr" "qmk-udev"
"nix" "mosh"
"networkmanager" "udisks2"
"bluetooth" "xdg"
"dbus" "pipewire"
"docker" "nix-development"
"fonts" "virt-manager"
"qmk-udev" "ssh-initrd"
"mosh" "printing"
"udisks2" "pam"
"xdg" "wireguard-client"
"pipewire" "greetd"
"nix-development" "syncthing"
"virt-manager" "mount-sisko"
"ssh-initrd" "adb"
"printing" "binfmt"
"pam" "prometheus-exporters"
"wireguard-client" "promtail"
"greetd" "syncthing"
"syncthing" ] ++ [ ./disko.nix ];
"mount-sisko"
"adb"
"binfmt"
"prometheus-exporters"
"promtail"
"syncthing"
]
++ [
./disko.nix
];
ccr = { ccr = {
enable = true; enable = true;
@ -80,17 +70,11 @@
}; };
boot.initrd.kernelModules = [ "i915" ]; boot.initrd.kernelModules = [ "i915" ];
boot.initrd.availableKernelModules = [ boot.initrd.availableKernelModules =
"nvme" [ "nvme" "xhci_pci" "usb_storage" "sd_mod" ];
"xhci_pci" boot.kernelModules = [ "kvm-intel" ];
"usb_storage"
"sd_mod"
];
boot.kernelModules = [
"kvm-intel"
];
boot.kernelPackages = pkgs.linuxKernel.packages.linux_6_10; boot.kernelPackages = pkgs.linuxPackages;
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
boot.loader.systemd-boot = { boot.loader.systemd-boot = {

View file

@ -1,51 +1,40 @@
{ { fleetModules, lib, config, pkgs, ... }: {
fleetModules, imports = fleetModules [
lib, "common"
config, "ssh"
pkgs, "ccr"
... "nix"
}: "networkmanager"
{ "bluetooth"
imports = "dbus"
fleetModules [ "docker"
"common" "fonts"
"ssh" "qmk-udev"
"ccr" "mosh"
"nix" "udisks2"
"networkmanager" "xdg"
"bluetooth" "pipewire"
"dbus" "nix-development"
"docker" "waydroid"
"fonts" "virt-manager"
"qmk-udev" "ssh-initrd"
"mosh" "printing"
"udisks2" "pam"
"xdg" "wireguard-client"
"pipewire" "binfmt"
"nix-development" "greetd"
"waydroid" "syncthing"
"virt-manager" "hass-poweroff"
"ssh-initrd" "forgejo-runners"
"printing" "teamviewer"
"pam" "macos-ventura"
"wireguard-client" "sunshine"
"binfmt" "mount-sisko"
"greetd" "adb"
"syncthing" "guix"
"hass-poweroff" "prometheus-exporters"
"forgejo-runners" "promtail"
"teamviewer" ] ++ [ ./disko.nix ];
"macos-ventura"
"sunshine"
"mount-sisko"
"adb"
"guix"
"prometheus-exporters"
"promtail"
]
++ [
./disko.nix
];
ccr = { ccr = {
enable = true; enable = true;
@ -99,13 +88,8 @@
boot.kernelParams = [ "ip=dhcp" ]; boot.kernelParams = [ "ip=dhcp" ];
boot.initrd.kernelModules = [ "amdgpu" ]; boot.initrd.kernelModules = [ "amdgpu" ];
boot.initrd.availableKernelModules = [ boot.initrd.availableKernelModules =
"nvme" [ "nvme" "xhci_pci" "ahci" "usbhid" "r8169" ];
"xhci_pci"
"ahci"
"usbhid"
"r8169"
];
boot.kernelModules = [ boot.kernelModules = [
"kvm-amd" "kvm-amd"
"ddcci" "ddcci"
@ -126,17 +110,17 @@
})) }))
]; ];
systemd.services.ddcci = { # systemd.services.ddcci = {
script = '' # script = ''
echo 'ddcci 0x37' > /sys/bus/i2c/devices/i2c-2/new_device # echo 'ddcci 0x37' > /sys/bus/i2c/devices/i2c-2/new_device
''; # '';
wantedBy = [ "graphical.target" ]; # wantedBy = [ "graphical.target" ];
restartIfChanged = false; # restartIfChanged = false;
serviceConfig = { # serviceConfig = {
Type = "oneshot"; # Type = "oneshot";
RemainAfterExit = true; # RemainAfterExit = true;
}; # };
}; # };
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
boot.loader.systemd-boot = { boot.loader.systemd-boot = {
@ -148,13 +132,14 @@
configurationLimit = 20; configurationLimit = 20;
}; };
boot.kernelPackages = pkgs.linuxKernel.packages.linux_6_10; boot.kernelPackages = pkgs.linuxPackages;
networking.hostId = "5b02e763"; networking.hostId = "5b02e763";
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
powerManagement.cpuFreqGovernor = lib.mkDefault "schedutil"; powerManagement.cpuFreqGovernor = lib.mkDefault "schedutil";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; hardware.cpu.amd.updateMicrocode =
lib.mkDefault config.hardware.enableRedistributableFirmware;
hardware.enableRedistributableFirmware = lib.mkDefault true; hardware.enableRedistributableFirmware = lib.mkDefault true;
hardware.graphics = { hardware.graphics = {