Disable nix autoUpgrade for regular machines
Only keep enabled for server where it makes sense
This commit is contained in:
parent
6ace75e967
commit
ce7c6ec582
|
@ -1,7 +1,7 @@
|
||||||
# Edit this configuration file to define what should be installed on
|
# Edit this configuration file to define what should be installed on
|
||||||
# your system. Help is available in the configuration.nix(5) man page
|
# your system. Help is available in the configuration.nix(5) man page
|
||||||
# and in the NixOS manual (accessible by running `nixos-help`).
|
# and in the NixOS manual (accessible by running `nixos-help`).
|
||||||
{ lib, ... }:
|
{ ... }:
|
||||||
let
|
let
|
||||||
# generate via openvpn --genkey --secret openvpn-laptop.key
|
# generate via openvpn --genkey --secret openvpn-laptop.key
|
||||||
client-key = "/root/openvpn.key";
|
client-key = "/root/openvpn.key";
|
||||||
|
@ -11,9 +11,12 @@ let
|
||||||
in {
|
in {
|
||||||
users.mutableUsers = false;
|
users.mutableUsers = false;
|
||||||
system.autoUpgrade = {
|
system.autoUpgrade = {
|
||||||
allowReboot = lib.mkForce true;
|
enable = true;
|
||||||
|
flake = "git+https://git.xenia.me.uk/xenia/nixos.git?ref=main";
|
||||||
|
dates = "02:30";
|
||||||
|
allowReboot = true;
|
||||||
rebootWindow = {
|
rebootWindow = {
|
||||||
lower = "03:00";
|
lower = "02:00";
|
||||||
upper = "05:00";
|
upper = "05:00";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{ pkgs, ... }: {
|
||||||
let flakeURL = "git+https://git.xenia.me.uk/xenia/nixos.git?ref=main";
|
|
||||||
in {
|
|
||||||
networking = {
|
networking = {
|
||||||
networkmanager.enable = true;
|
networkmanager.enable = true;
|
||||||
nameservers = [ "9.9.9.9" ];
|
nameservers = [ "9.9.9.9" ];
|
||||||
|
@ -40,10 +38,4 @@ in {
|
||||||
LC_TIME = locale;
|
LC_TIME = locale;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
system.autoUpgrade = {
|
|
||||||
enable = true;
|
|
||||||
dates = "02:00";
|
|
||||||
allowReboot = false;
|
|
||||||
flake = flakeURL;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue