refactor: inputs/ --> {sys,home}/
This commit is contained in:
parent
8f22a24963
commit
f77c627980
225 changed files with 77 additions and 88 deletions
39
home/modules/theme/gtk/default.nix
Normal file
39
home/modules/theme/gtk/default.nix
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
{ config, pkgs, inputs, lib, ... }:
|
||||
|
||||
let
|
||||
inherit (inputs.nix-colors.lib-contrib { inherit pkgs; }) gtkThemeFromScheme;
|
||||
cfg = config.homeModules.theme.gtk;
|
||||
in
|
||||
{
|
||||
options.homeModules.theme.gtk = {
|
||||
enable = lib.mkEnableOption "Enable gtk theme module";
|
||||
# TODO: add theme option
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable (rec {
|
||||
gtk = {
|
||||
enable = true;
|
||||
font = {
|
||||
name = config.homeModules.theme.fonts.regular.family;
|
||||
size = 12;
|
||||
};
|
||||
theme = {
|
||||
name = config.colorscheme.slug;
|
||||
package = gtkThemeFromScheme { scheme = config.colorscheme; };
|
||||
};
|
||||
iconTheme = {
|
||||
name = "Papirus-Dark";
|
||||
package = pkgs.papirus-icon-theme;
|
||||
};
|
||||
};
|
||||
|
||||
services.xsettingsd = {
|
||||
enable = true;
|
||||
settings = {
|
||||
"Net/ThemeName" = gtk.theme.name;
|
||||
"Net/IconThemeName" = gtk.iconTheme.name;
|
||||
};
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue