mirror of
https://gitlab.com/Zaney/zaneyos.git
synced 2025-08-18 01:30:33 +02:00
Fixed polkit, fixed wallpaper script, and more improvements so far!
This commit is contained in:
@@ -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
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user