mirror of
https://github.com/RichieCahill/dotfiles.git
synced 2026-04-17 04:58:19 -04:00
added update.nix to bob
This commit is contained in:
@@ -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 = {
|
system.autoUpgrade = {
|
||||||
enable = lib.mkDefault true;
|
enable = true;
|
||||||
flags = [ "--accept-flake-config" ];
|
flags = [ "--accept-flake-config" ];
|
||||||
randomizedDelaySec = "1h";
|
randomizedDelaySec = "1h";
|
||||||
persistent = true;
|
persistent = true;
|
||||||
flake = "github:RAD-Development/nix-dotfiles";
|
flake = "github:RichieCahill/dotfiles";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
../../common/optional/steam.nix
|
../../common/optional/steam.nix
|
||||||
../../common/optional/syncthing_base.nix
|
../../common/optional/syncthing_base.nix
|
||||||
../../common/optional/systemd-boot.nix
|
../../common/optional/systemd-boot.nix
|
||||||
|
../../common/optional/update.nix
|
||||||
../../common/optional/yubikey.nix
|
../../common/optional/yubikey.nix
|
||||||
../../common/optional/zerotier.nix
|
../../common/optional/zerotier.nix
|
||||||
./hardware.nix
|
./hardware.nix
|
||||||
|
|||||||
Reference in New Issue
Block a user