home: add profile pictures

This commit is contained in:
514fpv 2024-01-29 00:19:57 +08:00
parent 13d5891b73
commit e819ca42d0
Signed by: koishi
SSH key fingerprint: SHA256:axz0uIzzY+5W19i7QOUuiw5LSqhKfCBKPf3L4xFRxLw
6 changed files with 11 additions and 0 deletions

View file

@ -28,6 +28,11 @@ in {
default = false;
description = "enable ssh authorized keys for user";
};
picture = mkOption {
type = with types; nullOr path;
default = null;
description = "path to user profile picture";
};
};
});
description = "preconfigured users with profile options";
@ -132,6 +137,9 @@ in {
home-manager.users = mapAttrs (name: opts: {
imports = cfg.homeModules;
home.file.".face" = mkIf (opts.picture != null) {
source = opts.picture;
};
home.stateVersion = "23.11";
}) cfg.profiles;