61 lines
2.0 KiB
Nix
61 lines
2.0 KiB
Nix
|
{ pkgs, sys, ... }: {
|
||
|
home-manager.users.${sys.username} = {
|
||
|
home.packages = with pkgs; [ base16-schemes ];
|
||
|
# Use the following before running a switch to prevent clobbering:
|
||
|
# rm ~/.gtkrc-2.0 ~/.config/gtk-3.0/settings.ini ~/.config/gtk-3.0/gtk.css ~/.config/gtk-4.0/settings.ini ~/.config/gtk-4.0/gtk.css
|
||
|
# if one run with backups has already been done, clean it up with:
|
||
|
# rm ~/.gtkrc-2.0.backup ~/.config/gtk-3.0/settings.ini.backup ~/.config/gtk-3.0/gtk.css.backup ~/.config/gtk-4.0/settings.ini.backup ~/.config/gtk-4.0/gtk.css.backup
|
||
|
stylix = {
|
||
|
enable = true;
|
||
|
autoEnable = true;
|
||
|
polarity = "dark";
|
||
|
image = "${sys.wallpaper}";
|
||
|
base16Scheme = "${pkgs.base16-schemes}/share/themes/catppuccin-mocha.yaml";
|
||
|
fonts = {
|
||
|
sizes = {
|
||
|
applications = 10;
|
||
|
desktop = 10;
|
||
|
popups = 10;
|
||
|
terminal = 12;
|
||
|
};
|
||
|
monospace = {
|
||
|
name = "DejaVu Sans Mono";
|
||
|
package = pkgs.dejavu_fonts;
|
||
|
};
|
||
|
serif = {
|
||
|
name = "DejaVu Serif";
|
||
|
package = pkgs.dejavu_fonts;
|
||
|
};
|
||
|
sansSerif = {
|
||
|
name = "DejaVu Sans";
|
||
|
package = pkgs.dejavu_fonts;
|
||
|
};
|
||
|
emoji = {
|
||
|
name = "Noto Color Emoji";
|
||
|
package = pkgs.noto-fonts-color-emoji;
|
||
|
};
|
||
|
};
|
||
|
targets = {
|
||
|
bat.enable = true;
|
||
|
btop.enable = true;
|
||
|
firefox.enable = true;
|
||
|
firefox.profileNames = [ "Default" ];
|
||
|
fzf.enable = true;
|
||
|
gnome.enable = true;
|
||
|
gtk.enable = true;
|
||
|
kde.enable = true;
|
||
|
rofi.enable = true;
|
||
|
vesktop.enable = true;
|
||
|
vscode.enable = true;
|
||
|
wofi.enable = true;
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|
||
|
|
||
|
# Use the following to get an ordered list of color codes from ~/.config/stylix/palette.json:
|
||
|
#
|
||
|
# cat ~/.config/stylix/palette.json | jq 'to_entries | .[] | select(.key | contains("base")) | .value'
|
||
|
# To convert that to the format expected by [genix7000](https://github.com/cab404/genix7000):
|
||
|
# sed 's/^"/"\\#/' | tr '\n' ' '
|