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