summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config/auto-upgrade.nix20
-rwxr-xr-xupdate.sh4
2 files changed, 4 insertions, 20 deletions
diff --git a/config/auto-upgrade.nix b/config/auto-upgrade.nix
index d7a9a9d..ad8de9a 100644
--- a/config/auto-upgrade.nix
+++ b/config/auto-upgrade.nix
@@ -1,25 +1,5 @@
{ config, lib, pkgs, ... }:
{
- # systemd.services = {
- # nixos-config-pull = {
- # description = "Pull nixos config from git.";
- # path = [ pkgs.git ];
- # wantedBy = [ "nixos-upgrade.service" ];
- # before = [ "nixos-upgrade.service" ];
- # serviceConfig = {
- # Type = "oneshot";
- # User = "orbekk";
- # };
- # script = ''
- # cd /opt/site/nixos-config
- # git pull https://git.orbekk.com/nixos-config.git
- # '';
- # };
- # nixos-upgrade = {
- # path = [ pkgs.bzip2.bin ];
- # };
- # };
-
system.autoUpgrade = {
enable = true;
dates = "weekly";
diff --git a/update.sh b/update.sh
new file mode 100755
index 0000000..732c4ce
--- /dev/null
+++ b/update.sh
@@ -0,0 +1,4 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+nix flake update --recreate-lock-file --commit-lock-file