-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
181 additions
and
78 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,19 @@ | ||
{lib, ...}: { | ||
{ | ||
lib, | ||
config, | ||
... | ||
}: { | ||
imports = [ | ||
./icons.nix | ||
./stylix.nix | ||
]; | ||
|
||
theming.icons.enable = lib.mkDefault true; | ||
options.theming.enable = lib.mkEnableOption "Setup local theming"; | ||
|
||
config = lib.mkIf config.theming.enable { | ||
theming = { | ||
icons.enable = lib.mkDefault true; | ||
# stylix.enable = lib.mkDefault true; | ||
}; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
{ | ||
inputs, | ||
pkgs, | ||
lib, | ||
config, | ||
... | ||
}: { | ||
imports = [inputs.stylix.nixosModules.stylix]; | ||
|
||
options.theming = { | ||
# enable = lib.mkEnableOption "Enable eye-candy"; | ||
|
||
scheme = lib.mkOption { | ||
type = lib.types.str; | ||
default = "catppuccin-macchiato"; | ||
example = "gruvbox-material-dark-hard"; | ||
description = '' | ||
Theme to be used with Stylix throughout your config | ||
Visit https://tinted-theming.github.io/base16-gallery/ to see some schemes | ||
''; | ||
}; | ||
|
||
image = lib.mkOption { | ||
type = lib.types.str; | ||
default = "linux/nixos.png"; | ||
example = "linux/nixos.png"; | ||
description = '' | ||
Wallpaper to be used with Stylix throughout your config | ||
Visit https://github.com/arunoruto/wallpapers for possible images | ||
''; | ||
}; | ||
}; | ||
|
||
# config = lib.mkIf config.theming.enable { | ||
config = { | ||
stylix = { | ||
enable = true; | ||
base16Scheme = lib.mkDefault "${pkgs.base16-schemes}/share/themes/${config.theming.scheme}.yaml"; | ||
image = | ||
# pkgs.fetchFromGitHub { | ||
# owner = "arunoruto"; | ||
# repo = "wallpapers"; | ||
# rev = "8815698729ceff1f97fae5ab2bf930a9dd682198"; | ||
# hash = "sha256-uPaPAggLFmureDXqKcvwr2uMb24QuxQzbwCqTHNSIrg="; | ||
# } | ||
inputs.wallpapers + "/${config.theming.image}"; | ||
cursor = { | ||
name = "catppuccin-macchiato-dark-cursors"; | ||
package = pkgs.catppuccin-cursors.macchiatoDark; | ||
}; | ||
targets = { | ||
# lightdm.enable = true; | ||
}; | ||
}; | ||
}; | ||
} |
Oops, something went wrong.