Skip to content

Commit

Permalink
theme: use dark by default
Browse files Browse the repository at this point in the history
home/programs: set dconfDark/Light after dconfSettings
  • Loading branch information
fufexan committed Oct 3, 2023
1 parent 7b08ffa commit a02adc6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions home/programs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
colorschemePath = "/org/gnome/desktop/interface/color-scheme";
dconf = "${pkgs.dconf}/bin/dconf";

dconfDark = lib.hm.dag.entryAfter [] ''
dconfDark = lib.hm.dag.entryAfter ["dconfSettings"] ''
${dconf} write ${colorschemePath} "'prefer-dark'"
'';
dconfLight = lib.hm.dag.entryAfter [] ''
dconfLight = lib.hm.dag.entryAfter ["dconfSettings"] ''
${dconf} write ${colorschemePath} "'prefer-light'"
'';
in {
Expand Down
4 changes: 2 additions & 2 deletions modules/theme/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ in {
lib.mkOption {
description = "Colorscheme variant. Can be one of ${printEnum validVariants}";
type = lib.types.enum validVariants;
default = "light";
example = "dark";
default = "dark";
example = "light";
};

theme.files = lib.mkOption {
Expand Down

0 comments on commit a02adc6

Please sign in to comment.