nix/home-manager/common/desktops/gnome/themes/default/default.nix
2023-09-29 16:57:42 +09:00

63 lines
1.8 KiB
Nix

# Generated via dconf2nix: https://github.com/gvolpe/dconf2nix
{ lib, hostname, username, ... }: with lib.hm.gvariant;
let
# General Theming
font = "Monospace Bold";
font-mono = "JetBrainsMono Nerd Font 10";
font-doc = "JetBrainsMonoNL Nerd Font 11";
# Day Variant
day-wallpaper = "file:///etc/nixos/git/wallpapers/default/wallpaper1.png";
day-gtk-theme = "Fluent-Light-compact";
day-shell-theme = "Fluent-compact";
day-icon-theme = "Papirus";
# Night Variant
night-wallpaper = "file:///etc/nixos/git/wallpapers/default/wallpaper1.png";
night-gtk-theme = "Fluent-Dark-compact";
night-shell-theme = "Fluent-Dark-compact";
night-icon-theme = "Papirus-Dark";
in {
# Gnome GTK Settings
gtk.theme = "${night-gtk-theme}";
# Gnome DCONF Settings
dconf.settings = {
"org/gnome/desktop/background" = {
picture-uri = "${day-wallpaper}";
picture-uri-dark = "${night-wallpaper}";
};
"org/gnome/shell/extensions/nightthemeswitcher/gtk-variants" = {
enabled = true;
day = "${day-gtk-theme}";
night = "${night-gtk-theme}";
};
"org/gnome/shell/extensions/nightthemeswitcher/icon-variants" = {
enabled = true;
day = "${day-icon-theme}";
night = "${night-icon-theme}";
};
"org/gnome/shell/extensions/nightthemeswitcher/shell-variants" = {
enabled = true;
day = "${day-shell-theme}";
night = "${night-shell-theme}";
};
"org/gnome/desktop/interface" = {
clock-show-date = true;
clock-show-weekday = false;
color-scheme = "prefer-light";
font-antialiasing = "rgba";
font-hinting = "slight";
gtk-theme = "${day-gtk-theme}";
icon-theme = "${night-icon-theme}";
monospace-font-name = "${font-mono}";
font-name = "${font}";
document-font-name = "${font-doc}";
show-battery-percentage = false;
};
};
}