From 065172f1f9dba4c925c2fbd87612f267a19cbc8d Mon Sep 17 00:00:00 2001 From: Valentin Brandl Date: Sun, 1 Sep 2024 14:54:58 +0200 Subject: [PATCH] Configure but disable auto upgrade task --- machines/morpheus.nix | 14 +++++++++++++- machines/w1n5t0n.nix | 2 +- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/machines/morpheus.nix b/machines/morpheus.nix index 3310891..6a491ab 100644 --- a/machines/morpheus.nix +++ b/machines/morpheus.nix @@ -22,7 +22,19 @@ inputs.nixpkgs.lib.nixosSystem { (import ./office.nix inputs) ({ pkgs, lib, ... }: { system.autoUpgrade = { - enable = true; + enable = false; + flake = inputs.self.outPath; + flags = [ + "--update-input" + "nixpkgs" + "--update-input" + "nixpkgs-unstable" + "--update-input" + "home-manager" + "--update-input" + "flake-utils" + "-L" # print build logs + ]; allowReboot = false; }; diff --git a/machines/w1n5t0n.nix b/machines/w1n5t0n.nix index 4d0ac8e..b391085 100644 --- a/machines/w1n5t0n.nix +++ b/machines/w1n5t0n.nix @@ -13,7 +13,7 @@ inputs.nixpkgs.lib.nixosSystem { (import ./office.nix inputs) ({ pkgs, lib, ... }: { system.autoUpgrade = { - enable = true; + enable = false; allowReboot = false; };