From 62953c4e27aa70dff4e00096ed0e21001f1a3bb2 Mon Sep 17 00:00:00 2001 From: Kjetil Orbekk Date: Sat, 20 Feb 2021 20:49:55 -0500 Subject: Remove dead code --- config/auto-upgrade.nix | 20 -------------------- update.sh | 4 ++++ 2 files changed, 4 insertions(+), 20 deletions(-) create mode 100755 update.sh 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 -- cgit v1.2.3