Changing to and testing new sddm theme derivation

This commit is contained in:
Tyler Kelley 2024-01-22 23:46:45 -06:00
parent 6193962b38
commit 83b535e171
3 changed files with 44 additions and 4 deletions

View File

@ -5,7 +5,8 @@
home.file.".config/zaney-stinger.mov".source = ./files/media/zaney-stinger.mov;
home.file.".emoji".source = ./files/emoji;
home.file.".base16-themes".source = ./files/base16-themes;
home.file.".face".source = ./files/face.jpg;
home.file.".face".source = ./files/face.jpg; # For GDM
home.file.".face.icon".source = ./files/face.jpg; # For SDDM
home.file.".config/rofi/rofi.jpg".source = ./files/rofi.jpg;
home.file.".config/starship.toml".source = ./files/starship.toml;
home.file.".local/share/fonts" = {

View File

@ -0,0 +1,33 @@
{ lib, qtbase, qtsvg
, qtgraphicaleffects
, qtquickcontrols2
, wrapQtAppsHook
, stdenvNoCC
, fetchFromGitHub
}:
stdenvNoCC.mkDerivation rec {
pname = "tokyo-night-sddm";
version = "1..0";
dontBuild = true;
src = fetchFromGitHub {
owner = "rototrash";
repo = "tokyo-night-sddm";
rev = "320c8e74ade1e94f640708eee0b9a75a395697c6";
sha256 = "sha256-JRVVzyefqR2L3UrEK2iWyhUKfPMUNUnfRZmwdz05wL0=";
};
nativeBuildInputs = [
wrapQtAppsHook
];
propagatedUserEnvPkgs = [
qtbase
qtsvg
qtgraphicaleffects
qtquickcontrols2
];
installPhase = ''
mkdir -p $out/share/sddm/themes
cp -aR $src $out/share/sddm/themes/tokyo-night-sddm
'';
}

View File

@ -10,11 +10,17 @@
enable = true;
autoNumlock = true;
wayland.enable = true;
theme = "sugar-dark";
theme = "tokyo-night-sddm";
};
};
environment.systemPackages = let themes = pkgs.callPackage ../pkgs/sddm-sugar-dark.nix {}; in [
themes.sddm-sugar-dark
environment.systemPackages =
let
sugar = pkgs.callPackage ../pkgs/sddm-sugar-dark.nix {};
tokyo-night = pkgs.libsForQt5.callPackage ../pkgs/sddm-tokyo-night.nix {};
in [
sugar.sddm-sugar-dark # Name: sugar-dark
tokyo-night # Name: tokyo-night-sddm
pkgs.libsForQt5.qt5.qtgraphicaleffects
];
}