Attempt to fix theming

This commit is contained in:
2026-02-26 18:43:17 +00:00
parent e8becbb9b4
commit 5d15ebe2d2
8 changed files with 63 additions and 27 deletions
Generated
+6 -6
View File
@@ -107,11 +107,11 @@
"zen-browser": "zen-browser" "zen-browser": "zen-browser"
}, },
"locked": { "locked": {
"lastModified": 1771928247, "lastModified": 1772125727,
"narHash": "sha256-LkyNLrd5SEE4/JDH9sih5O6cuQ302b5q7I2BzVEAwos=", "narHash": "sha256-J41Xm8ewrCn16r0bDtOX+qu+uhNiOp9EAvy4FJ6mhKY=",
"owner": "Cian-H", "owner": "Cian-H",
"repo": "Nixers", "repo": "Nixers",
"rev": "9b5b4b1804b045a7d33152b4ca68584571cb3038", "rev": "918d6b2bf5fbe032fda2bf989e0716de4d68e057",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -262,11 +262,11 @@
"nixpkgs": "nixpkgs_6" "nixpkgs": "nixpkgs_6"
}, },
"locked": { "locked": {
"lastModified": 1771889317, "lastModified": 1772048434,
"narHash": "sha256-YV17Q5lEU0S9ppw08Y+cs4eEQJBuc79AzblFoHORLMU=", "narHash": "sha256-/wA0OaH6kZ/pFA+nXR/tvg5oupOmEDmMS5us79JT60o=",
"owner": "Mic92", "owner": "Mic92",
"repo": "sops-nix", "repo": "sops-nix",
"rev": "b027513c32e5b39b59f64626b87fbe168ae02094", "rev": "334daa7c273dd8bf7a0cd370e4e16022b64e55e9",
"type": "github" "type": "github"
}, },
"original": { "original": {
+18 -8
View File
@@ -24,11 +24,19 @@
... ...
} @ inputs: let } @ inputs: let
inherit (self) outputs; inherit (self) outputs;
worklaptopTheme = pkgs: { worklaptopTheme = {
theme = { pkgs,
unstablePkgs,
nixers,
}: {
gtkTheme = {
name = "Tokyonight-Dark"; name = "Tokyonight-Dark";
package = pkgs.tokyonight-gtk-theme; package = pkgs.tokyonight-gtk-theme;
}; };
qtTheme = {
name = "Kvantum-Tokyo-Night";
package = nixers.tokyonight-kvantum-theme;
};
iconTheme = { iconTheme = {
name = "Papirus-Dark"; name = "Papirus-Dark";
package = pkgs.papirus-icon-theme; package = pkgs.papirus-icon-theme;
@@ -62,11 +70,12 @@
}; };
in in
nixpkgs.lib.nixosSystem { nixpkgs.lib.nixosSystem {
specialArgs = { specialArgs = let
inherit inputs outputs;
unstablePkgs = inputs.nixpkgs-unstable.legacyPackages.x86_64-linux; unstablePkgs = inputs.nixpkgs-unstable.legacyPackages.x86_64-linux;
nixers = inputs.nixers-repo.packages.x86_64-linux; nixers = inputs.nixers-repo.packages.x86_64-linux;
theme = worklaptopTheme pkgs; in {
inherit inputs outputs unstablePkgs nixers;
theme = worklaptopTheme {inherit pkgs unstablePkgs nixers;};
}; };
modules = [ modules = [
./nixos/worklaptop.nix ./nixos/worklaptop.nix
@@ -129,8 +138,7 @@
home-manager.lib.homeManagerConfiguration { home-manager.lib.homeManagerConfiguration {
inherit pkgs; inherit pkgs;
extraSpecialArgs = { extraSpecialArgs = let
inherit inputs outputs;
unstablePkgs = import nixpkgs-unstable { unstablePkgs = import nixpkgs-unstable {
system = "x86_64-linux"; system = "x86_64-linux";
cudaSupport = true; cudaSupport = true;
@@ -140,7 +148,9 @@
}; };
}; };
nixers = inputs.nixers-repo.packages.${pkgs.stdenv.hostPlatform.system}; nixers = inputs.nixers-repo.packages.${pkgs.stdenv.hostPlatform.system};
theme = worklaptopTheme pkgs; in {
inherit inputs outputs unstablePkgs nixers;
theme = worklaptopTheme {inherit pkgs unstablePkgs nixers;};
}; };
modules = [ modules = [
-1
View File
@@ -95,7 +95,6 @@
"hg".source = ./dotfiles/dot_config/hg; "hg".source = ./dotfiles/dot_config/hg;
"stylua.toml".source = ./dotfiles/dot_config/stylua.toml; "stylua.toml".source = ./dotfiles/dot_config/stylua.toml;
"electron-flags.conf".source = ./dotfiles/dot_config/electron-flags.conf; "electron-flags.conf".source = ./dotfiles/dot_config/electron-flags.conf;
"Kvantum".source = ./dotfiles/dot_config/Kvantum;
"foot".source = ./dotfiles/dot_config/foot; "foot".source = ./dotfiles/dot_config/foot;
}; };
} }
-2
View File
@@ -73,8 +73,6 @@ in {
pkgs.gtk-engine-murrine pkgs.gtk-engine-murrine
pkgs.gtk_engines pkgs.gtk_engines
pkgs.hicolor-icon-theme pkgs.hicolor-icon-theme
pkgs.phinger-cursors
pkgs.tokyonight-gtk-theme
# Backend dev tools # Backend dev tools
pkgs.lua54Packages.lua pkgs.lua54Packages.lua
pkgs.luajitPackages.luarocks pkgs.luajitPackages.luarocks
+24 -3
View File
@@ -16,8 +16,8 @@
package = theme.iconTheme.package; package = theme.iconTheme.package;
}; };
theme = { theme = {
name = theme.theme.name; name = theme.gtkTheme.name;
package = theme.theme.package; package = theme.gtkTheme.package;
}; };
cursorTheme = { cursorTheme = {
name = theme.cursorTheme.name; name = theme.cursorTheme.name;
@@ -39,13 +39,34 @@
''; '';
}; };
}; };
# QT theming
qt = {
enable = true;
platformTheme.name = "kvantum";
style.name = "kvantum";
};
xdg.configFile."Kvantum/kvantum.kvconfig".text = ''
[General]
theme=${theme.qtTheme.name}
'';
# dconf theming settings # dconf theming settings
dconf.settings = { dconf.settings = {
"org/gnome/desktop/interface" = { "org/gnome/desktop/interface" = {
color-scheme = "prefer-dark"; color-scheme = "prefer-dark";
gtk-theme = theme.theme.name; gtk-theme = theme.gtkTheme.name;
icon-theme = theme.iconTheme.name; icon-theme = theme.iconTheme.name;
cursor-theme = theme.cursorTheme.name; cursor-theme = theme.cursorTheme.name;
}; };
}; };
# Ensure theming packages are installed
home.packages = [
theme.gtkTheme.package
theme.qtTheme.package
theme.iconTheme.package
theme.cursorTheme.package
];
} }
+2 -2
View File
@@ -18,8 +18,8 @@ in {
regreet = { regreet = {
enable = true; enable = true;
theme = { theme = {
name = theme.theme.name; name = theme.gtkTheme.name;
package = theme.theme.package; package = theme.gtkTheme.package;
}; };
cursorTheme = { cursorTheme = {
name = theme.cursorTheme.name; name = theme.cursorTheme.name;
+12 -4
View File
@@ -6,11 +6,14 @@
theme, theme,
... ...
}: { }: {
# GTK theming # Session Variable for GTK
environment.sessionVariables.GTK_THEME = theme.theme.name; environment.sessionVariables.GTK_THEME = theme.gtkTheme.name;
# Delegate QT theming to kvantum # QT config
environment.sessionVariables.QT_STYLE_OVERRIDE = "kvantum"; qt = {
enable = true;
style = "kvantum";
};
# Fonts # Fonts
fonts = { fonts = {
@@ -50,5 +53,10 @@
# Adwaita (i love gnome, but god damn is adwaita annoying on other DEs) # Adwaita (i love gnome, but god damn is adwaita annoying on other DEs)
pkgs.adwaita-icon-theme pkgs.adwaita-icon-theme
pkgs.libadwaita pkgs.libadwaita
# My theme packages set at the top level
theme.gtkTheme.package
theme.qtTheme.package
theme.iconTheme.package
theme.cursorTheme.package
]; ];
} }