fix(general): update nix channels on boot with service

This commit is contained in:
Infinidoge 2022-05-22 16:57:46 -04:00
parent 73aaf3ef6d
commit 15463b253a

View file

@ -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";
};
}