re-enable attic sync
This commit is contained in:
parent
492b2d493b
commit
c20fc52f97
@ -62,58 +62,58 @@
|
|||||||
|
|
||||||
# borrowing from https://github.com/Shawn8901/nix-configuration/blob/4b8d1d44f47aec60feb58ca7b7ab5ed000506e90/modules/nixos/private/hydra.nix
|
# borrowing from https://github.com/Shawn8901/nix-configuration/blob/4b8d1d44f47aec60feb58ca7b7ab5ed000506e90/modules/nixos/private/hydra.nix
|
||||||
# configured default webstore for this on root user separately
|
# configured default webstore for this on root user separately
|
||||||
# systemd = {
|
systemd = {
|
||||||
# services = {
|
services = {
|
||||||
# attic-watch-store = {
|
attic-watch-store = {
|
||||||
# wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
# after = [
|
after = [
|
||||||
# "network-online.target"
|
"network-online.target"
|
||||||
# "docker.service"
|
"docker.service"
|
||||||
# "atticd.service"
|
"atticd.service"
|
||||||
# ];
|
];
|
||||||
# requires = [
|
requires = [
|
||||||
# "network-online.target"
|
"network-online.target"
|
||||||
# "docker.service"
|
"docker.service"
|
||||||
# "atticd.service"
|
"atticd.service"
|
||||||
# ];
|
];
|
||||||
# description = "Upload all store content to binary cache";
|
description = "Upload all store content to binary cache";
|
||||||
# serviceConfig = {
|
serviceConfig = {
|
||||||
# User = "root";
|
User = "root";
|
||||||
# Restart = "always";
|
Restart = "always";
|
||||||
# ExecStart = "${pkgs.attic-client}/bin/attic watch-store cache-nix-dot";
|
ExecStart = "${pkgs.attic-client}/bin/attic watch-store cache-nix-dot";
|
||||||
# };
|
};
|
||||||
# };
|
};
|
||||||
# attic-sync-hydra = {
|
attic-sync-hydra = {
|
||||||
# after = [
|
after = [
|
||||||
# "network-online.target"
|
"network-online.target"
|
||||||
# "docker.service"
|
"docker.service"
|
||||||
# "atticd.service"
|
"atticd.service"
|
||||||
# ];
|
];
|
||||||
# requires = [
|
requires = [
|
||||||
# "network-online.target"
|
"network-online.target"
|
||||||
# "docker.service"
|
"docker.service"
|
||||||
# "atticd.service"
|
"atticd.service"
|
||||||
# ];
|
];
|
||||||
# description = "Force resync of hydra derivations with attic";
|
description = "Force resync of hydra derivations with attic";
|
||||||
# serviceConfig = {
|
serviceConfig = {
|
||||||
# Type = "oneshot";
|
Type = "oneshot";
|
||||||
# User = "root";
|
User = "root";
|
||||||
# ExecStart = "${config.nix.package}/bin/nix ${./sync-attic.bash}";
|
ExecStart = "${config.nix.package}/bin/nix ${./sync-attic.bash}";
|
||||||
# };
|
};
|
||||||
# };
|
};
|
||||||
# };
|
};
|
||||||
|
|
||||||
# timers = {
|
timers = {
|
||||||
# attic-sync-hydra = {
|
attic-sync-hydra = {
|
||||||
# wantedBy = [ "timers.target" ];
|
wantedBy = [ "timers.target" ];
|
||||||
# timerConfig = {
|
timerConfig = {
|
||||||
# OnBootSec = 600;
|
OnBootSec = 600;
|
||||||
# OnUnitActiveSec = 86400;
|
OnUnitActiveSec = 86400;
|
||||||
# Unit = "attic-sync-hydra.service";
|
Unit = "attic-sync-hydra.service";
|
||||||
# };
|
};
|
||||||
# };
|
};
|
||||||
# };
|
};
|
||||||
# };
|
};
|
||||||
|
|
||||||
sops = {
|
sops = {
|
||||||
secrets = {
|
secrets = {
|
||||||
|
@ -6,5 +6,5 @@ sync_directories=(
|
|||||||
)
|
)
|
||||||
|
|
||||||
for dir in "${sync_directories[@]}"; do
|
for dir in "${sync_directories[@]}"; do
|
||||||
find "$dir" -regex ".*\.drv$" -exec attic push cache-nix-dot '{}' \;
|
find "$dir" -regex ".*\.drv$" -exec attic push nix-cache '{}' \;
|
||||||
done
|
done
|
||||||
|
Loading…
x
Reference in New Issue
Block a user