[tohru] DRY home directory more sensibly

This commit is contained in:
Katherina Walshe-Grey 2024-06-04 21:27:40 +01:00
parent 7a0921806e
commit 85b08086fb

View file

@ -3,6 +3,7 @@
{
users.users.bluebird = {
isNormalUser = true;
home = "/home/bluebird";
description = "Bluebird";
extraGroups = [
"wheel" # sudo
@ -17,12 +18,8 @@
];
};
home-manager.users.bluebird = { pkgs, ... }:
let
homeDirectory = "/home/bluebird";
in
{
home.homeDirectory = homeDirectory;
home-manager.users.bluebird = { pkgs, ... }: {
home.homeDirectory = config.users.users.bluebird.home;
home.packages = with pkgs; [
fortune
@ -40,7 +37,7 @@
backgroundOptions = {
color-shading-type = "solid";
picture-options = "zoom";
picture-uri = "${homeDirectory}/.background-image";
picture-uri = "${config.users.users.bluebird.home}/.background-image";
primary-color = "#3a4ba0";
secondary-color = "#2f302f";
};