diff --git a/machines/WinMax2/hardware-configuration.nix b/machines/WinMax2/hardware-configuration.nix index 4778fbe..ac8d1cd 100755 --- a/machines/WinMax2/hardware-configuration.nix +++ b/machines/WinMax2/hardware-configuration.nix @@ -78,7 +78,10 @@ in { nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; hardware = { - cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; + cpu.amd = { + updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; + ryzen-smu.enable = true; + }; sensor.iio.bmi260.enable = true; }; } diff --git a/roles/kde/sddm.nix b/roles/kde/sddm.nix index 4a52489..1c296b9 100644 --- a/roles/kde/sddm.nix +++ b/roles/kde/sddm.nix @@ -1,10 +1,8 @@ { - config, + lib, pkgs, ... }: let - currentTheme = config.services.displayManager.sddm.theme; - sddm-sugar-candy = pkgs.stdenv.mkDerivation { pname = "sddm-sugar-candy"; version = "master"; @@ -30,13 +28,18 @@ customcfg = pkgs.stdenv.mkDerivation { name = "sddm-theme-customizer"; dontUnpack = true; - # TODO: generate theme.conf.user outside of installPhase - installPhase = '' + installPhase = let + config = lib.generators.toINI {} { + # Add the custom config here + General = { + background = "${pkgs.kdePackages.breeze}/share/wallpapers/Next/contents/images_dark/5120x2880.png"; + }; + }; + in '' runHook preInstall - mkdir -p $out/share/sddm/themes/${currentTheme}/ - echo "[General] - background = ${pkgs.plasma-workspace-wallpapers}/share/wallpapers/MilkyWay/contents/images/5120x2880.png" >> $out/share/sddm/themes/${currentTheme}/theme.conf.user + mkdir -p $out/share/sddm/themes/breeze/ + echo "${config}" >> $out/share/sddm/themes/breeze/theme.conf.user runHook postInstall ''; @@ -49,9 +52,11 @@ in { # theme = "sugar-candy"; settings = { General = {Numlock = "off";}; - Theme = {CursorTheme = "Breeze_Snow";}; + Theme = {CursorTheme = "Breeze_Light";}; }; }; + # Sugar candy doesn't seem to work on qt6 :( # environment.systemPackages = [sddm-sugar-candy customcfg]; + environment.systemPackages = [customcfg]; }