AutoUpdate : Disable on boot, but keep it daily.

This commit is contained in:
Dmitry Voronin 2024-03-03 20:49:44 +03:00
parent 8cac05efb4
commit 96aa149cb3
3 changed files with 5 additions and 5 deletions

View file

@ -105,7 +105,7 @@
# Common modules used across all hosts.
nixosModules.common.imports = [
./module/common/AutoRebuild.nix
./module/common/AutoUpdate.nix
./module/common/Bash.nix
./module/common/Bootloader.nix
./module/common/Distrobox.nix
@ -226,8 +226,8 @@
modules = [
"${nixpkgs}/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix"
"${nixpkgs}/nixos/modules/installer/cd-dvd/channel.nix"
{ networking.wireless.enable = nixpkgs.lib.mkForce false; }
{ systemd.services.autoupdate.wantedBy = nixpkgs.lib.mkForce []; }
{ networking.wireless.enable = nixpkgs.lib.mkForce false; }
{ systemd.timers.autoupdate.wantedBy = nixpkgs.lib.mkForce [ ]; }
({ pkgs, ... }: { boot.kernelPackages = nixpkgs.lib.mkForce pkgs.linuxPackages; })
./module/Gnome.nix
];

View file

@ -1,7 +1,7 @@
{ pkgs, inputs, lib, config, ... }: {
systemd.services.autoupdate = {
description = "Automatically rebuild the system.";
wantedBy = [ "multi-user.target" ];
# wantedBy = [ "multi-user.target" ];
wants = [ "dotfiles.service" ];
after = [ "dotfiles.service" ];
serviceConfig.Type = "oneshot";

View file

@ -1,6 +1,6 @@
{ pkgs, inputs, lib, config, ... }: let
unit = {
description = "Install/update dotfiles on startup.";
description = "Install/update dotfiles.";
wantedBy = [ "multi-user.target" "default.target" ];
wants = [ "NetworkManager-wait-online.service" ];
after = [ "NetworkManager-wait-online.service" ];