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.
|
# Common modules used across all hosts.
|
||||||
nixosModules.common.imports = [
|
nixosModules.common.imports = [
|
||||||
./module/common/AutoRebuild.nix
|
./module/common/AutoUpdate.nix
|
||||||
./module/common/Bash.nix
|
./module/common/Bash.nix
|
||||||
./module/common/Bootloader.nix
|
./module/common/Bootloader.nix
|
||||||
./module/common/Distrobox.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/installation-cd-minimal.nix"
|
||||||
"${nixpkgs}/nixos/modules/installer/cd-dvd/channel.nix"
|
"${nixpkgs}/nixos/modules/installer/cd-dvd/channel.nix"
|
||||||
{ networking.wireless.enable = nixpkgs.lib.mkForce false; }
|
{ 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; })
|
({ pkgs, ... }: { boot.kernelPackages = nixpkgs.lib.mkForce pkgs.linuxPackages; })
|
||||||
./module/Gnome.nix
|
./module/Gnome.nix
|
||||||
];
|
];
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{ pkgs, inputs, lib, config, ... }: {
|
{ pkgs, inputs, lib, config, ... }: {
|
||||||
systemd.services.autoupdate = {
|
systemd.services.autoupdate = {
|
||||||
description = "Automatically rebuild the system.";
|
description = "Automatically rebuild the system.";
|
||||||
wantedBy = [ "multi-user.target" ];
|
# wantedBy = [ "multi-user.target" ];
|
||||||
wants = [ "dotfiles.service" ];
|
wants = [ "dotfiles.service" ];
|
||||||
after = [ "dotfiles.service" ];
|
after = [ "dotfiles.service" ];
|
||||||
serviceConfig.Type = "oneshot";
|
serviceConfig.Type = "oneshot";
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{ pkgs, inputs, lib, config, ... }: let
|
{ pkgs, inputs, lib, config, ... }: let
|
||||||
unit = {
|
unit = {
|
||||||
description = "Install/update dotfiles on startup.";
|
description = "Install/update dotfiles.";
|
||||||
wantedBy = [ "multi-user.target" "default.target" ];
|
wantedBy = [ "multi-user.target" "default.target" ];
|
||||||
wants = [ "NetworkManager-wait-online.service" ];
|
wants = [ "NetworkManager-wait-online.service" ];
|
||||||
after = [ "NetworkManager-wait-online.service" ];
|
after = [ "NetworkManager-wait-online.service" ];
|
||||||
|
|
Reference in a new issue