feat(user): add profile pictures
This commit is contained in:
parent
c4590f2865
commit
4395af295a
|
@ -19,6 +19,7 @@ in {
|
|||
users.profiles.app = {
|
||||
uid = 5800;
|
||||
description = "Insecure Applications";
|
||||
picture = ../picture/app.png;
|
||||
};
|
||||
|
||||
# extra persistence specific to the app user
|
||||
|
|
BIN
home/picture/app.png
Normal file
BIN
home/picture/app.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 33 KiB |
BIN
home/picture/koishi.png
Normal file
BIN
home/picture/koishi.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 236 KiB |
BIN
home/picture/staging.png
Normal file
BIN
home/picture/staging.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 21 KiB |
|
@ -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;
|
||||
|
||||
|
|
|
@ -5,11 +5,13 @@
|
|||
description = "Koishi";
|
||||
admin = true;
|
||||
sshLogin = true;
|
||||
picture = ./picture/koishi.png;
|
||||
};
|
||||
|
||||
staging = {
|
||||
uid = 1000;
|
||||
description = "Staging Environment";
|
||||
picture = ./picture/staging.png;
|
||||
};
|
||||
|
||||
root.uid = 0;
|
||||
|
|
Loading…
Reference in a new issue