Migrate to hm managed theme switch

This commit is contained in:
Alexander
2026-07-03 17:31:31 +02:00
parent 60e23edf93
commit 27409eb5fa
8 changed files with 168 additions and 133 deletions
+4 -29
View File
@@ -121,8 +121,6 @@
display-manager.ly.enable = true;
gaming.enable = true;
dynamic-theme.enable = true;
};
###
@@ -133,37 +131,14 @@
useUserPackages = true;
backupFileExtension = "backup";
extraSpecialArgs = { inherit inputs username; };
# Stylix is handled entirely at the Home Manager level (see
# hm-modules/theme). Load the stylix HM module here so the `stylix`
# option exists for fujin's home configuration.
sharedModules = [ inputs.stylix.homeModules.stylix ];
users."${username}" = { imports = [ ./home.nix ] ++ extraHomeModules; };
};
stylix = {
enable = true;
# base16Scheme managed by dov.dynamic-theme module
fonts = {
serif = {
package = pkgs.dejavu_fonts;
name = "DejaVu Serif";
};
sansSerif = {
package = pkgs.dejavu_fonts;
name = "DejaVu Sans";
};
monospace = {
package = pkgs.dejavu_fonts;
name = "DejaVu Sans Mono";
};
emoji = {
package = pkgs.noto-fonts-color-emoji;
name = "Noto Color Emoji";
};
};
};
fonts.packages = with pkgs;
[
noto-fonts
+26 -2
View File
@@ -163,12 +163,36 @@
#mpc-cli
] ++ [ inputs.thefuck.packages.${pkgs.system}.default ];
# Stylix theming is driven by `dov.dynamic-theme` (hm-modules/theme),
# which sets `enable`, `base16Scheme` and `polarity` + specialisations.
# Here we only keep target overrides and the font set (moved from the
# old NixOS-level stylix config).
stylix = {
enable = true;
autoEnable = true;
targets = {
kde.enable = false;
};
fonts = {
serif = {
package = pkgs.dejavu_fonts;
name = "DejaVu Serif";
};
sansSerif = {
package = pkgs.dejavu_fonts;
name = "DejaVu Sans";
};
monospace = {
package = pkgs.dejavu_fonts;
name = "DejaVu Sans Mono";
};
emoji = {
package = pkgs.noto-fonts-color-emoji;
name = "Noto Color Emoji";
};
};
};
# blutooth applet