extra work for fws1
This commit is contained in:
1 parent
a80df5aec2
commit
8f9ba18f0a
3 files changed
+15
-3
No files matched your search
+2
-1
@@ -10,7 +10,8 @@ modules/
|
||||
├── lib.nix # makeNixOs / makeIso / makeHomeManagerUsers / makeDarwinModule / eachSystem
|
||||
│ # (registers the `tether` flake input's NixOS module → programs.tether.*)
|
||||
├── main.nix # Base module imported by every host: core/ + nixos/ + network-drives.nix
|
||||
├── skyg-utils.nix # makeHyperlinkScriptToConfigs (symlinks configs/ → ~/.config/)
|
||||
├── skyg-utils.nix # makeHyperlinkScriptToConfigs (symlinks configs/ → ~/.config/;
|
||||
│ # backs up an existing real dir to <path>.backup.<timestamp>)
|
||||
├── macos.nix # macOS / nix-darwin module
|
||||
├── network-drives.nix # skyg.networkDrives — NFS automount options
|
||||
├── core/ # User, binary caches, distributed builds, macOS workarounds
|
||||
|
||||
@@ -23,6 +23,9 @@
|
||||
sourcePath = "${configSource}/${filePath}";
|
||||
in
|
||||
''
|
||||
if [[ -d "${homePath}" && ! -h "${homePath}" ]]; then
|
||||
mv "${homePath}" "${homePath}.backup.$(date +%Y_%m_%d_%H_%M_%S)"
|
||||
fi
|
||||
rm -f "${homePath}"
|
||||
if [[ ! -h "${homePath}" ]]; then
|
||||
ln -s "${sourcePath}" "${homePath}" || {
|
||||
|
||||
Reference in new issue
Block a user