10 An example of how you can override the background on the NixOS logo
12 environment.systemPackages = [
13 (pkgs.where-is-my-sddm-theme.override {
14 themeConfig.General = {
15 background = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
16 backgroundMode = "none";
25 user-cfg = (formats.ini { }).generate "theme.conf.user" themeConfig;
32 lib.checkListOfEnum "where-is-my-sddm-theme: variant" validVariants variants
34 stdenvNoCC.mkDerivation
36 pname = "where-is-my-sddm-theme";
39 src = fetchFromGitHub {
40 owner = "stepanzubkov";
41 repo = "where-is-my-sddm-theme";
42 rev = "refs/tags/v${finalAttrs.version}";
43 hash = "sha256-EzO+MTz1PMmgeKyw65aasetmjUCpvilcvePt6HJZrpo=";
46 propagatedUserEnvPkgs =
48 ++ lib.optionals (lib.elem "qt5" variants) [ libsForQt5.qtgraphicaleffects ]
49 ++ lib.optionals (lib.elem "qt6" variants) [
56 mkdir -p $out/share/sddm/themes/
58 + lib.optionalString (lib.elem "qt6" variants) (
60 cp -r where_is_my_sddm_theme/ $out/share/sddm/themes/
62 + lib.optionalString (lib.isAttrs themeConfig) ''
63 ln -sf ${user-cfg} $out/share/sddm/themes/where_is_my_sddm_theme/theme.conf.user
66 + lib.optionalString (lib.elem "qt5" variants) (
68 cp -r where_is_my_sddm_theme_qt5/ $out/share/sddm/themes/
70 + lib.optionalString (lib.isAttrs themeConfig) ''
71 ln -sf ${user-cfg} $out/share/sddm/themes/where_is_my_sddm_theme_qt5/theme.conf.user
76 description = "Most minimalistic SDDM theme among all themes";
77 homepage = "https://github.com/stepanzubkov/where-is-my-sddm-theme";
78 license = lib.licenses.mit;
79 platforms = lib.platforms.linux;
80 maintainers = with lib.maintainers; [ name-snrl ];