Regenerated

This commit is contained in:
2026-04-14 13:34:33 +02:00
parent 32f96f600a
commit b875ac5842
3 changed files with 420 additions and 344 deletions
+342 -342
View File
File diff suppressed because it is too large Load Diff
+2 -2
View File
@@ -211,9 +211,9 @@ The Nix flake definition for Droidnix.
}
#+END_SRC
** =generated/modules/traveldroid/system/Colors.nix=
** =generated/modules/traveldroid/system/colors.nix=
Setting the colors for Droidnix.
#+BEGIN_SRC nix :tangle generated/modules/traveldroid/system/Colors.nix :noweb yes :mkdirp yes :eval never
#+BEGIN_SRC nix :tangle generated/modules/traveldroid/system/colors.nix :noweb yes :mkdirp yes :eval never
{ lib, config, pkgs, flakeRoot, ... }:
let
colors = {
@@ -0,0 +1,76 @@
# --- This file has been auto-generated. For permanent changes alter the appropriate block in the README.org. ---
{ lib, config, pkgs, flakeRoot, ... }:
let
colors = {
crust = "#11111b";
mantle = "#181825";
base = "#1e1e2e";
surface0 = "#313244";
surface1 = "#45475a";
surface2 = "#585b70";
overlay0 = "#6c7086";
overlay1 = "#7f849c";
overlay2 = "#9399b2";
subtext0 = "#a6adc8";
subtext1 = "#bac2de";
text = "#cdd6f4";
rosewater = "#f5e0dc";
flamingo = "#f2cdcd";
pink = "#f5c2e7";
mauve = "#cba6f7";
red = "#f38ba8";
maroon = "#eba0ac";
peach = "#fab387";
yellow = "#f9e2af";
green = "#a6e3a1";
teal = "#94e2d5";
sapphire = "#74c7ec";
blue = "#89b4fa";
lavender = "#b4befe";
};
username = config.defaultUser or "henrov";
cssContent = ''
/* Catppuccin Mocha Palette - auto-generated, do not edit manually */
'' + lib.concatStringsSep "\n" (
lib.mapAttrsToList (name: value:
"@define-color ${name} ${value};"
) colors
) + "\n@define-color base-alpha rgba(30, 30, 46, 0.9);";
qmlContent = ''
pragma Singleton
// Catppuccin Mocha Palette - auto-generated, do not edit manually
import QtQuick
QtObject {
readonly property color baseAlpha: Qt.rgba(30/255, 30/255, 46/255, 0.9)
'' + lib.concatStringsSep "\n" (
lib.mapAttrsToList (name: value:
" readonly property color ${name}: \"${value}\""
) colors
) + "\n}";
in
{
home-manager.users.${username} = {
home.file = {
".config/shared/Colors.css" = {
text = cssContent;
force = true;
};
".config/quickshell/Colors.qml" = {
text = qmlContent;
force = true;
};
".config/quickshell/powermenu/Colors.qml" = {
text = qmlContent;
force = true;
};
".config/quickshell/powermenu/qmldir" = {
text = "singleton Colors 1.0 Colors.qml";
force = true;
};
};
};
}