From 9bcad9d5ab14809a43ab884e2cc54bb7d32bf116 Mon Sep 17 00:00:00 2001 From: Infinidoge Date: Fri, 25 Feb 2022 12:53:33 -0500 Subject: [PATCH] fix(command-not-found): update nix channels on activation --- modules/modules/global.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/modules/global.nix b/modules/modules/global.nix index c5674d3..389ef56 100644 --- a/modules/modules/global.nix +++ b/modules/modules/global.nix @@ -1,4 +1,4 @@ -{ config, lib, ... }: +{ config, pkgs, lib, ... }: with lib; with lib.hlissner; { @@ -25,4 +25,9 @@ with lib.hlissner; # Ensure certain necessary directories always exist services.ensure.directories = [ "/mnt" ]; + + # FIX: command-not-found database doesn't exist normally + system.activationScripts.channels-update.text = '' + ${pkgs.nix}/bin/nix-channel --update + ''; }