Remove syncthing migration script
This commit is contained in:
parent
6e154b7299
commit
f76359a615
2 changed files with 17 additions and 19 deletions
|
|
@ -121,6 +121,17 @@
|
||||||
};
|
};
|
||||||
settings = {
|
settings = {
|
||||||
defaults = {
|
defaults = {
|
||||||
|
vimgrep_arguments = [
|
||||||
|
"rg"
|
||||||
|
"--color=never"
|
||||||
|
"--no-heading"
|
||||||
|
"--with-filename"
|
||||||
|
"--line-number"
|
||||||
|
"--column"
|
||||||
|
"--smart-case"
|
||||||
|
"--hidden"
|
||||||
|
"--no-ignore"
|
||||||
|
];
|
||||||
file_ignore_patterns = [
|
file_ignore_patterns = [
|
||||||
"^.git/"
|
"^.git/"
|
||||||
"^node_modules/"
|
"^node_modules/"
|
||||||
|
|
@ -133,6 +144,12 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
pickers = {
|
||||||
|
find_files = {
|
||||||
|
hidden = true;
|
||||||
|
no_ignore = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -7,23 +7,4 @@
|
||||||
# Don't enable tray on macOS as it requires additional setup
|
# Don't enable tray on macOS as it requires additional setup
|
||||||
tray.enable = false;
|
tray.enable = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
# Copy existing Syncthing configuration to preserve device ID and settings
|
|
||||||
home.activation.syncthingConfig = lib.hm.dag.entryAfter ["writeBoundary"] ''
|
|
||||||
# Create syncthing config directory if it doesn't exist
|
|
||||||
mkdir -p "$HOME/.config/syncthing"
|
|
||||||
|
|
||||||
# Copy configuration from macOS location if not already present
|
|
||||||
if [ ! -e "$HOME/.config/syncthing/config.xml" ]; then
|
|
||||||
echo "Migrating Syncthing configuration from macOS location..."
|
|
||||||
if [ -d "$HOME/Library/Application Support/Syncthing" ]; then
|
|
||||||
cp -r "$HOME/Library/Application Support/Syncthing/"* "$HOME/.config/syncthing/"
|
|
||||||
echo "Syncthing configuration migrated successfully!"
|
|
||||||
else
|
|
||||||
echo "Warning: No existing Syncthing configuration found to migrate"
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
echo "Syncthing configuration already exists at ~/.config/syncthing"
|
|
||||||
fi
|
|
||||||
'';
|
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue