mirror of
https://gitlab.com/Zaney/zaneyos.git
synced 2025-06-24 22:12:04 +02:00
Change persistence for update feature to function properly
This commit is contained in:
parent
3349266d95
commit
f9ca753421
@ -23,6 +23,7 @@ in
|
||||
"Documents"
|
||||
"Pictures"
|
||||
"Videos"
|
||||
"zaneyos"
|
||||
".local/share/sddm"
|
||||
".mozilla"
|
||||
".cache"
|
||||
|
@ -44,13 +44,6 @@
|
||||
options = [ "bind" ];
|
||||
};
|
||||
|
||||
fileSystems."/home/${username}/zaneyos" =
|
||||
{
|
||||
device = "/nix/persist/etc/nixos/zaneyos";
|
||||
fsType = "none";
|
||||
options = [ "bind" ];
|
||||
};
|
||||
|
||||
fileSystems."/var/log" =
|
||||
{
|
||||
device = "/nix/persist/var/log";
|
||||
|
@ -28,13 +28,11 @@ if [ -d "zaneyos" ]; then
|
||||
echo "ZaneyOS exists, backing up to .config/zaneyos-backups folder."
|
||||
if [ -d ".config/zaneyos-backups" ]; then
|
||||
echo "Moving current version of ZaneyOS to backups folder."
|
||||
sudo umount $HOME/zaneyos
|
||||
sudo mv $HOME/zaneyos .config/zaneyos-backups/$backupname
|
||||
sleep 1
|
||||
else
|
||||
echo "Creating the backups folder & moving ZaneyOS to it."
|
||||
mkdir .config/zaneyos-backups
|
||||
sudo umount $HOME/zaneyos
|
||||
sudo mv $HOME/zaneyos .config/zaneyos-backups/$backupname
|
||||
sleep 1
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user