summaryrefslogtreecommitdiff
path: root/hosts/laptop-nixos/configuration.nix
diff options
context:
space:
mode:
authorKyren223 <Kyren223@proton.me>2024-12-18 12:08:39 +0200
committerKyren223 <Kyren223@proton.me>2024-12-18 12:08:39 +0200
commit10c5d98db1b49c6a7315bcf43a58e399a0507bb5 (patch)
tree0b4ba662377383fc1b5d8994fa670dfcd3e1f2e4 /hosts/laptop-nixos/configuration.nix
parent74c1ef70ce35cf0d082bf7e987288961e99fd961 (diff)
Added git sync for my notes dir and made the battery notifications run
less frequently
Diffstat (limited to 'hosts/laptop-nixos/configuration.nix')
-rw-r--r--hosts/laptop-nixos/configuration.nix27
1 files changed, 25 insertions, 2 deletions
diff --git a/hosts/laptop-nixos/configuration.nix b/hosts/laptop-nixos/configuration.nix
index 6b6f1b9..3ce7d43 100644
--- a/hosts/laptop-nixos/configuration.nix
+++ b/hosts/laptop-nixos/configuration.nix
@@ -149,8 +149,8 @@
systemd.timers."battery-notifier" = {
wantedBy = [ "timers.target" ];
timerConfig = {
- OnBootSec = "1m";
- OnUnitActiveSec = "1m";
+ OnBootSec = "3m";
+ OnUnitActiveSec = "3m";
Unit = "battery-notifier.service";
};
};
@@ -163,6 +163,29 @@
};
};
+ systemd.timers."git-auto-sync" = {
+ wantedBy = [ "timers.target" ];
+ timerConfig = {
+ OnBootSec = "5m";
+ OnUnitActiveSec = "5m";
+ Unit = "git-auto-sync.service";
+ };
+ };
+
+ systemd.services."git-auto-sync" = {
+ script = "$HOME/scripts/git-auto-sync.sh";
+ path = [
+ pkgs.git
+ pkgs.gh
+ pkgs.keychain
+ pkgs.openssh
+ ];
+ serviceConfig = {
+ Type = "oneshot";
+ User = "kyren";
+ };
+ };
+
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];