diff options
| author | Kyren223 <Kyren223@proton.me> | 2025-06-05 13:42:54 +0300 |
|---|---|---|
| committer | Kyren223 <Kyren223@proton.me> | 2025-06-05 13:42:54 +0300 |
| commit | d2f9cb70ad60c3429df3b414d5bb33944ef685c4 (patch) | |
| tree | 1a1a0ab23fc2491decab14466618d2018bada9e2 /hosts/configuration.nix | |
| parent | becb29ef63162549aa119acc4ad6727e7bc43226 (diff) | |
Moved timers into their own nix module, fixed issues with sops, upgraded
gitea.py to use env vars for secrets, added a timer to run every 5 hours
to mirror repos from github to gitea
Diffstat (limited to 'hosts/configuration.nix')
| -rw-r--r-- | hosts/configuration.nix | 37 |
1 files changed, 2 insertions, 35 deletions
diff --git a/hosts/configuration.nix b/hosts/configuration.nix index 423b9bb..7af6654 100644 --- a/hosts/configuration.nix +++ b/hosts/configuration.nix @@ -1,14 +1,15 @@ { pkgs, inputs, ... }: { imports = [ + inputs.sops-nix.nixosModules.sops ../modules/apps.nix ../modules/kde.nix ../modules/networking.nix ../modules/development.nix ../modules/gaming.nix ../modules/secrets.nix + ../modules/timers.nix inputs.home-manager.nixosModules.default - inputs.sops-nix.nixosModules.sops ]; home-manager = { @@ -111,38 +112,4 @@ "d /home/kyren/.config/syncthing 0700 kyren users" ]; - 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"; }; - }; - - systemd.timers."k-sleep-tracker" = { - wantedBy = [ "timers.target" ]; - timerConfig = { - OnBootSec = "1m"; - OnUnitActiveSec = "1m"; - Unit = "k-sleep-tracker.service"; - }; - }; - - systemd.services."k-sleep-tracker" = { - script = "$HOME/projects/k/bin/k tracker sleep"; - serviceConfig = { Type = "oneshot"; User = "kyren"; }; - }; - } |
