diff --git a/home/picture/app.png b/home/picture/app.png index 6cbfd8a2..bd1b86c3 100644 Binary files a/home/picture/app.png and b/home/picture/app.png differ diff --git a/home/profile.nix b/home/profile.nix index d14f39c4..4a00bf32 100644 --- a/home/profile.nix +++ b/home/profile.nix @@ -144,6 +144,26 @@ in { home.stateVersion = "23.11"; }) cfg.profiles; + system.activationScripts = mapAttrs' + (name: opts: nameValuePair + "${name}-profile-icon" + { + deps = [ "users" ]; + text = let + iconDest = "/var/lib/AccountsService/icons/${name}"; + userConf = pkgs.writeText "${name}-config" '' + [User] + Session= + Icon=${iconDest} + SystemAccount=false + ''; + in '' + install -Dm 0444 ${opts.picture} ${iconDest} + install -Dm 0400 ${userConf} /var/lib/AccountsService/users/${name} + ''; + }) + (filterAttrs (n: _: n != "root") config.users.profiles); + # set up standard persistence for users # this is registered internally for each software's configuration environment.persistence."/nix/persist" = {