From a0472eccc686e47276ee8415e7c6f88bb8b06804 Mon Sep 17 00:00:00 2001 From: Hektor Misplon Date: Sun, 16 Nov 2025 01:56:06 +0100 Subject: [PATCH] Enable nightlight (dconf setting) --- home/hosts/astyanax/default.nix | 5 ++++- home/hosts/work/default.nix | 16 +++++++++------- home/modules/dconf.nix | 8 ++++++++ 3 files changed, 21 insertions(+), 8 deletions(-) create mode 100644 home/modules/dconf.nix diff --git a/home/hosts/astyanax/default.nix b/home/hosts/astyanax/default.nix index 415d198..a97d23d 100644 --- a/home/hosts/astyanax/default.nix +++ b/home/hosts/astyanax/default.nix @@ -6,8 +6,11 @@ }: { - home.stateVersion = "25.05"; + imports = [ + ../../modules/dconf.nix # TODO: Only enable when on Gnome? + ]; + home.stateVersion = "25.05"; home.username = "h"; home.homeDirectory = "/home/h"; diff --git a/home/hosts/work/default.nix b/home/hosts/work/default.nix index 859a63c..242bac9 100644 --- a/home/hosts/work/default.nix +++ b/home/hosts/work/default.nix @@ -1,13 +1,19 @@ { - pkgs, - config, inputs, + config, + pkgs, ... }: { + imports = [ + inputs.sops-nix.homeManagerModules.sops + ../../modules/dconf.nix # TODO: Only enable when on Gnome? + ]; - imports = [ inputs.sops-nix.homeManagerModules.sops ]; + home.stateVersion = "25.05"; + home.username = "hektor"; + home.homeDirectory = "/home/hektor"; sops = { defaultSopsFile = "${builtins.toString inputs.nix-secrets}/secrets.yaml"; @@ -22,10 +28,6 @@ defaultWrapper = "mesa"; }; - home.username = "hektor"; - home.homeDirectory = "/home/hektor"; - home.stateVersion = "25.05"; - programs.anki = import ../../modules/anki.nix; programs.firefox = import ../../modules/firefox.nix { inherit inputs; diff --git a/home/modules/dconf.nix b/home/modules/dconf.nix new file mode 100644 index 0000000..074193e --- /dev/null +++ b/home/modules/dconf.nix @@ -0,0 +1,8 @@ +{ + dconf.settings = { + "org/gnome/settings-daemon/plugins/color" = { + night-light-enabled = true; + night-light-schedule-automatic = true; + }; + }; +}