mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-06 05:08:10 +09:00
webook
This commit is contained in:
@@ -45,12 +45,13 @@ in
|
|||||||
WorkingDirectory = stateDirectory;
|
WorkingDirectory = stateDirectory;
|
||||||
UMask = "0077";
|
UMask = "0077";
|
||||||
ExecCondition = cleanCheckoutConditions;
|
ExecCondition = cleanCheckoutConditions;
|
||||||
|
EnvironmentFile = "${fleetDirectory}/.env";
|
||||||
|
|
||||||
# Work in a disposable copy so updating the dotfiles lock never dirties
|
# Work in a disposable copy so updating the dotfiles lock never dirties
|
||||||
# the operator's nix-fleet checkout.
|
# the operator's nix-fleet checkout.
|
||||||
ExecStart = [
|
ExecStart = [
|
||||||
"${git} -C ${fleetDirectory} pull --ff-only"
|
"${git} -C ${fleetDirectory} pull --ff-only"
|
||||||
"${rsync} --archive --delete --exclude=.git/ --exclude=.direnv/ --exclude=result --exclude=result-* ${fleetDirectory}/ ${sourceDirectory}/"
|
"${rsync} --archive --delete --exclude=.git/ --exclude=.direnv/ --exclude=.env --exclude=result --exclude=result-* ${fleetDirectory}/ ${sourceDirectory}/"
|
||||||
"${nix} flake update --flake ${sourceDirectory} dotfiles"
|
"${nix} flake update --flake ${sourceDirectory} dotfiles"
|
||||||
"${nix} run ${sourceDirectory}#converge -- ${sourceDirectory} ${stateDirectory}"
|
"${nix} run ${sourceDirectory}#converge -- ${sourceDirectory} ${stateDirectory}"
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user