feat(users): add stylix; add wallpapers

This commit is contained in:
Sk7Str1p3 2026-05-07 22:05:18 +03:00
parent a22dc3cc19
commit 85d17f0bc3
No known key found for this signature in database
GPG key ID: 4DD995933D06D43B
2 changed files with 15 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 MiB

View file

@ -24,6 +24,8 @@
userPassword: {hash}
```
where `{hash}` is result of `echo {your password} | mkpasswd -s`
Wallpapers can be `png` or `jpg` format, and must be stored at `users/{user}/wallpaper.{ext}`
*/
{
lib,
@ -74,10 +76,21 @@
${user} = {
imports = [
./${user}/modules
inputs.stylix.homeModules.stylix
];
}
stylix = {
enable = true;
image =
if builtins.pathExists ./${user}/wallpaper.png then
./${user}/wallpaper.png
else
./${user}/wallpaper.jpg;
};
home.stateVersion = config.system.stateVersion;
};
}) cfg.usersList
)
);
};
# Configure DM and users' default sessions