stylix toggle
This commit is contained in:
82
stylix.nix
82
stylix.nix
@@ -1,39 +1,57 @@
|
||||
{ pkgs, lib, ... }:
|
||||
{
|
||||
stylix = {
|
||||
enable = true;
|
||||
image = ./wallpapers/pirates.jpg;
|
||||
cursor = {
|
||||
package = pkgs.bibata-cursors;
|
||||
name = "Bibata-Modern-Ice";
|
||||
size = 30;
|
||||
};
|
||||
fonts = {
|
||||
monospace = {
|
||||
package = pkgs.nerd-fonts.comic-shanns-mono;
|
||||
name = "ComicShansMono Nerd Font Mono";
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
let
|
||||
cfg = config.my.stylix;
|
||||
iconTheme = pkgs.papirus-icon-theme;
|
||||
in
|
||||
{
|
||||
options.my.stylix.enable = lib.mkEnableOption "enable";
|
||||
config = {
|
||||
stylix = {
|
||||
enable = cfg.enable;
|
||||
image = ./wallpapers/pirates.jpg;
|
||||
cursor = {
|
||||
package = pkgs.bibata-cursors;
|
||||
name = "Bibata-Modern-Ice";
|
||||
size = 30;
|
||||
};
|
||||
sansSerif = {
|
||||
package = pkgs.dejavu_fonts;
|
||||
name = "DejaVu Sans";
|
||||
fonts = {
|
||||
monospace = {
|
||||
package = pkgs.nerd-fonts.comic-shanns-mono;
|
||||
name = "ComicShansMono Nerd Font Mono";
|
||||
};
|
||||
sansSerif = {
|
||||
package = pkgs.dejavu_fonts;
|
||||
name = "DejaVu Sans";
|
||||
};
|
||||
serif = {
|
||||
package = pkgs.dejavu_fonts;
|
||||
name = "DejaVu Serif";
|
||||
};
|
||||
};
|
||||
serif = {
|
||||
package = pkgs.dejavu_fonts;
|
||||
name = "DejaVu Serif";
|
||||
targets.qt.platform = lib.mkForce "qtct";
|
||||
};
|
||||
home-manager.users.jawz = {
|
||||
gtk = lib.mkIf (!cfg.enable) {
|
||||
iconTheme = iconTheme;
|
||||
};
|
||||
stylix = {
|
||||
enable = cfg.enable;
|
||||
iconTheme = {
|
||||
enable = cfg.enable;
|
||||
package = iconTheme;
|
||||
light = "Papirus-Light";
|
||||
dark = "Papirus-Dark";
|
||||
};
|
||||
targets.librewolf = {
|
||||
firefoxGnomeTheme.enable = cfg.enable;
|
||||
profileNames = [ "jawz" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
targets.qt.platform = lib.mkForce "qtct";
|
||||
};
|
||||
home-manager.users.jawz.stylix = {
|
||||
iconTheme = {
|
||||
enable = true;
|
||||
package = pkgs.papirus-icon-theme;
|
||||
light = "Papirus-Light";
|
||||
dark = "Papirus-Dark";
|
||||
};
|
||||
targets.librewolf = {
|
||||
firefoxGnomeTheme.enable = true;
|
||||
profileNames = [ "jawz" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user