Hello. i want to customize the theme of my sddm astronaut config, as i was able to get the sddm astronaut theme working through the nixos wiki
the default theme is set to astronaut, and i want to change it to japanese aesthetic. however i have no idea on where to put the code snippet. how to use flakes to make it work or something etc.
this is how i got the theme working,
# Enable the KDE Plasma Desktop Environment.
services.displayManager.sddm.enable = true;
services.desktopManager.plasma6.enable = true;
services.displayManager.sddm = {
theme = "sddm-astronaut-theme";
extraPackages = [ pkgs.sddm-astronaut ];
};
*inside configuration.nix
and im supposed to put this code snippet somewhere and fill it out to customize my theme
let
sddm-astronaut = (pkgs.sddm-astronaut.override {
embeddedTheme = "japanese_aesthetic"; # or any other theme
themeConfig = {
# Customize colors and settings
HeaderTextColor = "#d5c4a1";
Background = "Backgrounds/your-custom-background.png";
# ... other theme configuration options
};
}).overrideAttrs (oldAttrs: {
# Optional: Inject custom background image
installPhase = oldAttrs.installPhase + ''
chmod u+w $out/share/sddm/themes/sddm-astronaut-theme/Backgrounds/
cp ${./relative/path/to/your-custom-background.png} \
$out/share/sddm/themes/sddm-astronaut-theme/Backgrounds/your-custom-background.png
'';
});
in
{
environment.systemPackages = [ sddm-astronaut ];
services.displayManager.sddm = {
enable = true;
package = pkgs.kdePackages.sddm;
extraPackages = with pkgs; [
kdePackages.qtmultimedia # Required for video backgrounds/audio
];
theme = "sddm-astronaut-theme";
};
}
has anyone done this before so they can give me pointers or something? ive been going on this issue back and forth for like 2 days now
this is the github link GitHub - Keyitdev/sddm-astronaut-theme: Series of modern looking themes for SDDM. · GitHub