diff --git a/home/app/nixos.nix b/home/app/nixos.nix index 9318e957..4cfb6191 100644 --- a/home/app/nixos.nix +++ b/home/app/nixos.nix @@ -19,6 +19,7 @@ in { users.profiles.app = { uid = 5800; description = "Insecure Applications"; + picture = ../picture/app.png; }; # extra persistence specific to the app user diff --git a/home/picture/app.png b/home/picture/app.png new file mode 100644 index 00000000..6cbfd8a2 Binary files /dev/null and b/home/picture/app.png differ diff --git a/home/picture/koishi.png b/home/picture/koishi.png new file mode 100644 index 00000000..3a61f2e6 Binary files /dev/null and b/home/picture/koishi.png differ diff --git a/home/picture/staging.png b/home/picture/staging.png new file mode 100644 index 00000000..4de219ed Binary files /dev/null and b/home/picture/staging.png differ diff --git a/home/profile.nix b/home/profile.nix index d10a1552..c6b20c45 100644 --- a/home/profile.nix +++ b/home/profile.nix @@ -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; diff --git a/home/user.nix b/home/user.nix index 82342a93..6f61a442 100644 --- a/home/user.nix +++ b/home/user.nix @@ -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;