Enable nightlight (dconf setting)

main
Hektor Misplon 2025-11-16 01:56:06 +01:00
parent 9475aae43a
commit a0472eccc6
3 changed files with 21 additions and 8 deletions

View File

@ -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";

View File

@ -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;

8
home/modules/dconf.nix Normal file
View File

@ -0,0 +1,8 @@
{
dconf.settings = {
"org/gnome/settings-daemon/plugins/color" = {
night-light-enabled = true;
night-light-schedule-automatic = true;
};
};
}