From a75e4dc41dee1c4551b7c344ce0d35b9244a76dc Mon Sep 17 00:00:00 2001 From: caem Date: Wed, 28 Aug 2024 22:41:29 +0200 Subject: [PATCH] kde: Add sddm background and persist more stuff --- .gitattributes | 2 +- modules/desktop/environments/kde.nix | 22 +++++++++++++++++++++- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/.gitattributes b/.gitattributes index c666ab7..76cd9be 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1 +1 @@ -users/hu/packages/ags/config/vendor/** linguist-vendored +assets/** linguist-vendored diff --git a/modules/desktop/environments/kde.nix b/modules/desktop/environments/kde.nix index a36acb4..83ba628 100644 --- a/modules/desktop/environments/kde.nix +++ b/modules/desktop/environments/kde.nix @@ -1,19 +1,35 @@ { pkgs, ... }: -{ +let + sddm-background-drv = pkgs.stdenvNoCC.mkDerivation { + name = "sddm-background-drv"; + src = ../../../assets/wallpapers; + dontUnpack = true; + installPhase = '' + cp $src/kde.png $out + ''; + }; +in { imports = [ ../../system/fonts.nix ]; + environment.persistence."/nix/persist".directories = [ + "/var/lib/AccountsService/" + ]; + environment.persistence."/nix/persist".users.hu.directories = [ # https://github.com/nix-community/plasma-manager/issues/172 ".local/share/konsole" ".local/share/kwalletd" + ".local/share/baloo" + ".local/share/dolphin" ]; environment.persistence."/nix/persist".users.hu.files = [ ".config/konsolerc" ".config/kwinoutputconfig.json" + ".local/state/konsolestaterc" ]; environment.sessionVariables = { @@ -41,6 +57,10 @@ environment.systemPackages = with pkgs; [ nvidia-vaapi-driver kdePackages.sddm-kcm + (pkgs.writeTextDir "share/sddm/themes/breeze/theme.conf.user" '' + [General] + background=${sddm-background-drv} + '') ]; home-manager.users.hu = {