fix(command-not-found): update nix channels on activation
This commit is contained in:
parent
86d8d80f1f
commit
9bcad9d5ab
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||||
|
'';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue