Move gtk configuration
All checks were successful
/ check (push) Successful in 1m38s

This commit is contained in:
Oliver Davies 2025-07-28 01:39:38 +01:00
parent aac84ce5b5
commit 3a6a2f0bcc
7 changed files with 29 additions and 39 deletions

View file

@ -13,10 +13,6 @@
starship.enable = true; starship.enable = true;
zsh.enable = true; zsh.enable = true;
}; };
desktop = {
gtk.enable = true;
};
}; };
programs = { programs = {

View file

@ -2,7 +2,6 @@
imports = [ imports = [
./bookmarkthis.nix ./bookmarkthis.nix
./dev-commit.nix ./dev-commit.nix
./gtk.nix
./node.nix ./node.nix
./starship.nix ./starship.nix
./zsh ./zsh

View file

@ -1,34 +0,0 @@
{
config,
lib,
pkgs,
...
}:
with lib;
let
cfg = config.features.desktop.gtk;
in
{
options.features.desktop.gtk.enable = mkEnableOption "Enable gtk";
config = mkIf cfg.enable {
gtk = with pkgs; {
enable = true;
theme = {
name = "Arc-Dark";
package = arc-theme;
};
iconTheme = {
name = "Arc";
package = arc-icon-theme;
};
gtk3.extraConfig.gtk-enable-animations = false;
gtk4.extraConfig.gtk-enable-animations = false;
};
};
}

View file

@ -0,0 +1,6 @@
{
flake.modules.homeManager.gui.gtk = {
gtk3.extraConfig.gtk-enable-animations = false;
gtk4.extraConfig.gtk-enable-animations = false;
};
}

3
modules2/gtk/enable.nix Normal file
View file

@ -0,0 +1,3 @@
{
flake.modules.homeManager.gui.gtk.enable = true;
}

View file

@ -0,0 +1,10 @@
{
flake.modules.homeManager.gui =
{ pkgs, ... }:
{
gtk.iconTheme = {
name = "Arc";
package = pkgs.arc-icon-theme;
};
};
}

10
modules2/gtk/theme.nix Normal file
View file

@ -0,0 +1,10 @@
{
flake.modules.homeManager.gui =
{ pkgs, ... }:
{
gtk.theme = {
name = "Arc-Dark";
package = pkgs.arc-theme;
};
};
}