refactor(flake-parts): initial flake-parts configuration
This commit is contained in:
parent
8f67be9e68
commit
5603001d65
230 changed files with 380 additions and 717 deletions
|
|
@ -1,41 +0,0 @@
|
|||
{ 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;
|
||||
};
|
||||
};
|
||||
|
||||
xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
|
||||
});
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue