Fixed polkit, fixed wallpaper script, and more improvements so far!

This commit is contained in:
Tyler Kelley
2024-01-19 02:55:01 -06:00
parent dca4d03495
commit 85c2e0e8c0
4 changed files with 183 additions and 212 deletions

View File

@@ -1,8 +1,16 @@
{ pkgs, config, ... }:
{ pkgs, config, wallpaperDir,
wallpaperGit, username, ... }:
{
# system.userActivationScripts = {
# swayncReloader.text = ''
# '';
# };
system.activationScripts = {
gitwallpapers.text = ''
if [ -d ${wallpaperDir} ]; then
cd ${wallpaperDir}
${pkgs.git}/bin/git pull
else
${pkgs.git}/bin/git clone ${wallpaperGit} ${wallpaperDir}
chown -R ${username}:users ${wallpaperDir}
fi
'';
};
}