fix(command-not-found): update nix channels on activation

This commit is contained in:
Infinidoge 2022-02-25 12:53:33 -05:00
parent 86d8d80f1f
commit 9bcad9d5ab

View file

@ -1,4 +1,4 @@
{ config, lib, ... }: { config, pkgs, lib, ... }:
with lib; with lib;
with lib.hlissner; with lib.hlissner;
{ {
@ -25,4 +25,9 @@ with lib.hlissner;
# Ensure certain necessary directories always exist # Ensure certain necessary directories always exist
services.ensure.directories = [ "/mnt" ]; services.ensure.directories = [ "/mnt" ];
# FIX: command-not-found database doesn't exist normally
system.activationScripts.channels-update.text = ''
${pkgs.nix}/bin/nix-channel --update
'';
} }