AutoUpdate : Disable on boot, but keep it daily.
This commit is contained in:
parent
8cac05efb4
commit
96aa149cb3
|
@ -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
|
||||
|
@ -227,7 +227,7 @@
|
|||
"${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 []; }
|
||||
{ systemd.timers.autoupdate.wantedBy = nixpkgs.lib.mkForce [ ]; }
|
||||
({ pkgs, ... }: { boot.kernelPackages = nixpkgs.lib.mkForce pkgs.linuxPackages; })
|
||||
./module/Gnome.nix
|
||||
];
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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" ];
|
||||
|
|
Reference in a new issue