Files
nix/home/common/programs/desktop/darkman.nix
T
Miguel Palhas dcbd73a9cf fix darkman
2025-06-30 11:24:31 +01:00

31 lines
753 B
Nix

{ config, pkgs, ... }:
{
home.packages = with pkgs; [
dconf
];
services.darkman = {
enable = true;
darkModeScripts = {
gtk-theme = ''
${pkgs.dconf}/bin/dconf write \
/org/gnome/desktop/interface/color-scheme "'prefer-dark'"
${pkgs.dconf}/bin/dconf write \
/org/gnome/desktop/interface/gtk-theme "'Orchis-Dark-Compact'"
'';
};
lightModeScripts = {
gtk-theme = ''
${pkgs.dconf}/bin/dconf write \
/org/gnome/desktop/interface/color-scheme "'prefer-light'"
${pkgs.dconf}/bin/dconf write \
/org/gnome/desktop/interface/gtk-theme "'Orchis-Compact'"
'';
};
};
xdg.configFile."darkman/config.yaml".text = ''
usegeoclue: true
'';
}