From d429891173f1fc4a42cf45f2bfc411536411bd5c Mon Sep 17 00:00:00 2001 From: Daniel Langbein Date: Sun, 4 Feb 2024 15:01:56 +0100 Subject: [PATCH] gnome settings: night light, epiphany --- modules/gnome-config.nix | 29 ++++++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/modules/gnome-config.nix b/modules/gnome-config.nix index 9945542..501c32d 100644 --- a/modules/gnome-config.nix +++ b/modules/gnome-config.nix @@ -15,12 +15,15 @@ # - Dump new settings # dconf dump / > dconf-new.ini # - Display changes - # diff dconf-old.ini dconf-new.ini + # diff --context=5 dconf-old.ini dconf-new.ini # - Add to `dconf.settings` below. + # Restore settings: + # dconf load / < dconf-old.ini + programs.dconf.enable = true; - home-manager.users.yoda = { osConfig, config, pkgs, ... }: { + home-manager.users.yoda = { osConfig, config, pkgs, lib, ... }: { home.file = { # Templates to create new Files with Nautilus. # It is also possible to group them by category @@ -73,10 +76,30 @@ old-files-age = 30; }; + # Settings > Display > Night Light "org/gnome/settings-daemon/plugins/color" = { night-light-enabled = true; + night-light-temperature = lib.hm.gvariant.mkUint32 3700; + + # Night light always on night-light-schedule-automatic = false; - #night-light-temperature = "uint32 3700"; + night-light-schedule-from = 2.0; + night-light-schedule-to = 2.0; + }; + + # Epiphany (GNOME Web) + "org/gnome/epiphany" = { + ask-for-default = false; + + homepage-url = "https://www.startpage.com/"; + default-search-engine = "StartPage"; + + # search-engine-providers = ...; + # Could be helpful: + # https://github.com/matthewpi/nixos-config/blob/a6b7303f7a4a154d9d21a5ec25e725792214e3f2/users/matthew/desktop/gtk.nix#L154 + # https://nix-community.github.io/home-manager/ -> hm.gvariant + # Value: + # [{'url': <'https://duckduckgo.com/?q=%s&t=epiphany'>, 'bang': <'!ddg'>, 'name': <'DuckDuckGo'>}, {'url': <'https://www.example.com/search?q=%s'>, 'bang': <''>, 'name': <'New search engine'>}, {'url': <'https://www.startpage.com/sp/search?query=%s'>, 'bang': <'!sp'>, 'name': <'StartPage'>}] }; "org/gnome/mutter" = {