consolidate home-manager config to a module with one entrypoint

This commit is contained in:
Katherina Walshe-Grey 2024-07-30 13:02:11 +01:00
parent 230e93bbe7
commit 31bf48154c
15 changed files with 59 additions and 68 deletions

27
home/dconf/appearance.nix Normal file
View file

@ -0,0 +1,27 @@
{ config, lib, pkgs, ... }:
let inherit (lib) mkIf;
in {
dconf = {
settings =
let
backgroundOptions = {
color-shading-type = "solid";
picture-options = "zoom";
picture-uri = "${config.home.homeDirectory}/.background-image";
primary-color = "#3a4ba0";
secondary-color = "#2f302f";
};
in
{
"org/gnome/desktop/background" = backgroundOptions // {
picture-uri-dark = backgroundOptions.picture-uri;
};
"org/gnome/desktop/screensaver" = backgroundOptions;
"org/gnome/desktop/interface".color-scheme = "prefer-dark";
};
};
home.file.".background-image" = mkIf config.dconf.enable {
source = ./background-image.jpg;
};
}