From 0f094bfacbde70190f6b145425ed1351a1c1a662 Mon Sep 17 00:00:00 2001 From: Richie Cahill Date: Sun, 19 Jan 2025 14:38:24 -0500 Subject: [PATCH] added update.nix to bob --- common/optional/update.nix | 27 ++------------------------- systems/bob/default.nix | 1 + 2 files changed, 3 insertions(+), 25 deletions(-) diff --git a/common/optional/update.nix b/common/optional/update.nix index 0104ada..355e4c0 100644 --- a/common/optional/update.nix +++ b/common/optional/update.nix @@ -1,32 +1,9 @@ -{ lib, pkgs, ... }: { - systemd = { - services."autopull@dotfiles" = { - requires = [ "multi-user.target" ]; - after = [ "multi-user.target" ]; - description = "Pull the latest data for dotfiles"; - serviceConfig = { - Type = "oneshot"; - User = "root"; - WorkingDirectory = /root/dotfiles; - ExecStart = "${pkgs.git}/bin/git pull --all --prune"; - }; - }; - timers."autopull@dotfiles" = { - wantedBy = [ "timers.target" ]; - timerConfig = { - OnBootSec = "1h"; - OnUnitActiveSec = "1h"; - Unit = "autopull@dotfiles.service"; - }; - }; - }; - system.autoUpgrade = { - enable = lib.mkDefault true; + enable = true; flags = [ "--accept-flake-config" ]; randomizedDelaySec = "1h"; persistent = true; - flake = "github:RAD-Development/nix-dotfiles"; + flake = "github:RichieCahill/dotfiles"; }; } diff --git a/systems/bob/default.nix b/systems/bob/default.nix index 155aacd..b018b17 100644 --- a/systems/bob/default.nix +++ b/systems/bob/default.nix @@ -9,6 +9,7 @@ ../../common/optional/steam.nix ../../common/optional/syncthing_base.nix ../../common/optional/systemd-boot.nix + ../../common/optional/update.nix ../../common/optional/yubikey.nix ../../common/optional/zerotier.nix ./hardware.nix