Compare commits

..

3 commits

Author SHA1 Message Date
84fa84350a Kde/sddm: change background 2024-06-05 22:55:38 +02:00
f4712fdf70 Kde/sddm: change cursor name
The cursor name changed in Plasma 6 and I forgot to change it
2024-06-05 22:53:31 +02:00
bec73e73ad Machines/WinMax2: enable ryzen smu 2024-06-04 09:35:54 +02:00
2 changed files with 18 additions and 10 deletions

View file

@ -78,7 +78,10 @@ in {
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware = { 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; sensor.iio.bmi260.enable = true;
}; };
} }

View file

@ -1,10 +1,8 @@
{ {
config, lib,
pkgs, pkgs,
... ...
}: let }: let
currentTheme = config.services.displayManager.sddm.theme;
sddm-sugar-candy = pkgs.stdenv.mkDerivation { sddm-sugar-candy = pkgs.stdenv.mkDerivation {
pname = "sddm-sugar-candy"; pname = "sddm-sugar-candy";
version = "master"; version = "master";
@ -30,13 +28,18 @@
customcfg = pkgs.stdenv.mkDerivation { customcfg = pkgs.stdenv.mkDerivation {
name = "sddm-theme-customizer"; name = "sddm-theme-customizer";
dontUnpack = true; dontUnpack = true;
# TODO: generate theme.conf.user outside of installPhase installPhase = let
installPhase = '' 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 runHook preInstall
mkdir -p $out/share/sddm/themes/${currentTheme}/ mkdir -p $out/share/sddm/themes/breeze/
echo "[General] echo "${config}" >> $out/share/sddm/themes/breeze/theme.conf.user
background = ${pkgs.plasma-workspace-wallpapers}/share/wallpapers/MilkyWay/contents/images/5120x2880.png" >> $out/share/sddm/themes/${currentTheme}/theme.conf.user
runHook postInstall runHook postInstall
''; '';
@ -49,9 +52,11 @@ in {
# theme = "sugar-candy"; # theme = "sugar-candy";
settings = { settings = {
General = {Numlock = "off";}; General = {Numlock = "off";};
Theme = {CursorTheme = "Breeze_Snow";}; Theme = {CursorTheme = "Breeze_Light";};
}; };
}; };
# Sugar candy doesn't seem to work on qt6 :( # Sugar candy doesn't seem to work on qt6 :(
# environment.systemPackages = [sddm-sugar-candy customcfg]; # environment.systemPackages = [sddm-sugar-candy customcfg];
environment.systemPackages = [customcfg];
} }