fix(general): update nix channels on boot with service
This commit is contained in:
parent
73aaf3ef6d
commit
15463b253a
1 changed files with 6 additions and 0 deletions
|
@ -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";
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue