diff --git a/modules/global/general.nix b/modules/global/general.nix index be1c83c..67c84ff 100644 --- a/modules/global/general.nix +++ b/modules/global/general.nix @@ -21,4 +21,10 @@ # FIX: command-not-found database doesn't exist normally channels-update.text = "${pkgs.nix}/bin/nix-channel --update"; }; + systemd.services.update-root-nix-channels = { + description = "Runs nix-channel --update on startup"; + wantedBy = [ "multi-user.target" ]; + serviceConfig.Type = "oneshot"; + script = "${pkgs.nix}/bin/nix-channel --update"; + }; }