Make driftwood autoupdate
This commit is contained in:
parent
023771c1d1
commit
9d6200280e
2 changed files with 14 additions and 0 deletions
|
@ -31,6 +31,7 @@
|
|||
imports = [
|
||||
# Our modules
|
||||
(import ../../modules/base.nix {inherit inputs;})
|
||||
(import ../../modules/autoupdate.nix)
|
||||
(import ./configuration.nix)
|
||||
(import ./hardware.nix)
|
||||
(import ../../modules/user.nix {
|
||||
|
|
13
nixos/modules/autoupdate.nix
Normal file
13
nixos/modules/autoupdate.nix
Normal file
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
system.autoUpgrade = {
|
||||
enable = true;
|
||||
flake = "git+https://git.stranger.systems/Nix/System.git";
|
||||
dates = "02:00";
|
||||
randomizedDelaySec = "2h";
|
||||
};
|
||||
}
|
Loading…
Add table
Reference in a new issue