Skip to content

Commit

Permalink
Move stylix to theming
Browse files Browse the repository at this point in the history
  • Loading branch information
arunoruto committed Oct 13, 2024
1 parent d0a2303 commit 1248588
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 15 deletions.
2 changes: 1 addition & 1 deletion modules/home-manager/home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ in {
imports = [
./hosts
./pc
./theming
./environment.nix
./imports.nix
./stylix.nix
./module.nix
];

Expand Down
15 changes: 1 addition & 14 deletions modules/home-manager/pc/desktop/gnome/theming.nix
Original file line number Diff line number Diff line change
@@ -1,16 +1,8 @@
{
pkgs,
lib,
config,
...
}: let
candy-icons = pkgs.fetchFromGitHub {
owner = "EliverLara";
repo = "candy-icons";
rev = "b92b133d0ad7ed5b5e376bd00216a05652277209";
sha256 = "sha256-0wsSjK8WrwM/yh40a76cYblbv52tdJGTKAdxNU43frc=";
};
in {
}: {
options.gnome.theming.enable = lib.mkEnableOption "Set GNOME theming through nix (only icons)";

config = lib.mkIf config.gnome.theming.enable {
Expand All @@ -25,10 +17,5 @@ in {
# package = pkgs.catppuccin-cursors.macchiatoDark;
# };
};

home.file.".local/share/icons/candy-icons" = {
# recursive = true;
source = "${candy-icons}";
};
};
}
8 changes: 8 additions & 0 deletions modules/home-manager/theming/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{lib, ...}: {
imports = [
./icons.nix
./stylix.nix
];

theming.icons.enable = lib.mkDefault true;
}
24 changes: 24 additions & 0 deletions modules/home-manager/theming/icons.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
pkgs,
lib,
config,
...
}: let
candy-icons = pkgs.fetchFromGitHub {
owner = "EliverLara";
repo = "candy-icons";
rev = "011363a8e2bceaef7d9c6e982eb20152c6676ca9";
sha256 = "sha256-duhMByJzLV0nM7byvpdg1Z1Uw59OEaZ96UezTyfuXzg=";
};
in {
options.theming.icons.enable = lib.mkEnableOption "Setup icons for theming";

config = lib.mkIf config.theming.icons.enable {
home.file = {
".local/share/icons/candy-icons" = {
# recursive = true;
source = "${candy-icons}";
};
};
};
}
File renamed without changes.

0 comments on commit 1248588

Please sign in to comment.