home: add profile pictures
This commit is contained in:
parent
13d5891b73
commit
e819ca42d0
6 changed files with 11 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue