# main

uuid: 249c66d74d73e59ecc40f0824ed35a51e9380e96
text: catppuccin-sddm
mimetypes:
text/plain,text/plain;charset=utf-8,text/html,text/_moz_htmlcontext,text/_moz_htmlinfo,text/x-moz-url-priv


uuid: da9cb8e8ed50a6c9efd772696463d7163e8df5b6
mimetypes: text/plain,text/plain;charset=utf-8
text:
{
  lib,
  stdenvNoCC,
  fetchFromGitHub,
  just,
  kdePackages,
  flavor ? "mocha",
  font ? "Noto Sans",
  fontSize ? "9",
  background ? null,
  loginBackground ? false,
}:
stdenvNoCC.mkDerivation rec {
  pname = "catppuccin-sddm";
  version = "1.0.0";

  src = fetchFromGitHub {
    owner = "catppuccin";
    repo = "sddm";
    rev = "v${version}";
    hash = "sha256-SdpkuonPLgCgajW99AzJaR8uvdCPi4MdIxS5eB+Q9WQ=";
  };

  dontWrapQtApps = true;

  nativeBuildInputs = [
    just
  ];

  propagatedBuildInputs = [
    kdePackages.qtsvg
  ];

  buildPhase = ''
    runHook preBuild

    just build

    runHook postBuild
  '';

  installPhase = ''
    runHook preInstall

    mkdir -p "$out/share/sddm/themes/"
    cp -r dist/catppuccin-${flavor} "$out/share/sddm/themes/catppuccin-${flavor}"

    configFile=$out/share/sddm/themes/catppuccin-${flavor}/theme.conf

    substituteInPlace $configFile \
      --replace-fail 'Font="Noto Sans"' 'Font="${font}"' \
      --replace-fail 'FontSize=9' 'FontSize=${fontSize}'

    ${lib.optionalString (background != null) ''
      substituteInPlace $configFile \
        --replace-fail 'Background="backgrounds/wall.jpg"' 'Background="${background}"' \
        --replace-fail 'CustomBackground="false"' 'CustomBackground="true"'
    ''}

    ${lib.optionalString loginBackground ''
      substituteInPlace $configFile \
        --replace-fail 'LoginBackground="false"' 'LoginBackground="true"'
    ''}

    runHook postInstall
  '';

  postFixup = ''
    mkdir -p $out/nix-support
    echo ${kdePackages.qtsvg} >> $out/nix-support/propagated-user-env-packages
  '';

  meta = {
    description = "Soothing pastel theme for SDDM";
    homepage = "https://github.com/catppuccin/sddm";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ elysasrc ];
    platforms = lib.platforms.linux;
  };
}


uuid: 108c7859dbb8c8134be5c2879caaf7816650b3fd
mimetypes: text/plain,text/plain;charset=utf-8
text:
let
  catppuccin-sddm = import (fetchFromGitHub {
    owner = "catppuccin";
    repo = "sddm";
    rev = "v1.0.0"; # Specify the version (or a commit hash)
    sha256 = "sha256-SdpkuonPLgCgajW99AzJaR8uvdCPi4MdIxS5eB+Q9WQ="; # You may need to adjust this hash if needed
  }) {
    lib = pkgs.lib;
    stdenvNoCC = pkgs.stdenvNoCC;
    fetchFromGitHub = pkgs.fetchFromGitHub;
    just = pkgs.just;
    kdePackages = pkgs.kdePackages;
    flavor = "frappe"; # Override the flavor
  };
in
catppuccin-sddm


uuid: b751a730aceb3c4e8331ac75125c24be87de8e76
mimetypes: text/plain,text/plain;charset=utf-8
text:
error:
       … while calling the 'head' builtin
         at /nix/store/01635adignbizr4nyz5lpawkrxn4n4g8-source/lib/attrsets.nix:1534:13:
         1533|           if length values == 1 || pred here (elemAt values 1) (head values) then
         1534|             head values
             |             ^
         1535|           else

       … while evaluating the attribute 'value'
         at /nix/store/01635adignbizr4nyz5lpawkrxn4n4g8-source/lib/modules.nix:1084:7:
         1083|     // {
         1084|       value = addErrorContext "while evaluating the option `${showOption loc}':" value;
             |       ^
         1085|       inherit (res.defsFinal') highestPrio;

       … while evaluating the option `system.build.toplevel':

       … while evaluating definitions from `/nix/store/01635adignbizr4nyz5lpawkrxn4n4g8-source/nixos/modules/system/activation/top-level.nix':

       … while evaluating the option `system.systemBuilderArgs':

       … while evaluating definitions from `/nix/store/01635adignbizr4nyz5lpawkrxn4n4g8-source/nixos/modules/system/activation/activatable-system.nix':

       … while evaluating the option `system.activationScripts.etc.text':

       … while evaluating definitions from `/nix/store/01635adignbizr4nyz5lpawkrxn4n4g8-source/nixos/modules/system/etc/etc-activation.nix':

       … while evaluating definitions from `/nix/store/01635adignbizr4nyz5lpawkrxn4n4g8-source/nixos/modules/system/etc/etc.nix':

       … while evaluating the option `environment.etc.dbus-1.source':

       … while evaluating the option `environment.systemPackages':

       … while evaluating definitions from `/nix/store/wzkj9yvyp96vygv27sg00y8w5jpaw3rw-source/nixLap/configuration.nix':

       (stack trace truncated; use '--show-trace' to show the full, detailed trace)

       error: opening file '/nix/store/yqngn1asbz4dxsgfdvgwvhd0xrl3vj2b-source/default.nix': No such file or directory


uuid: ef1befe6e01793c8075baa0f57b4989160e59b46
text:
pkgs.catppuccin-sddm.override {
    flavor = "mocha";
    font  = "Noto Sans";
    fontSize = "9";
    background = "${./wallpaper.png}";
    loginBackground = true;
  }


uuid: ba77a7da26b8a3426e3b1636106fde70b0aa0ccc
text:
displayManager.sddm = {
  enable = true;
  theme = "catppuccin-mocha";
  package = pkgs.kdePackages.sddm;
};


