profiles/dev: set conditional nix-index module for home-manager

This commit is contained in:
Gabriel Arazas 2023-11-15 06:56:12 +08:00
parent 33294cd8c4
commit 6dbe0c2c23
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC

View File

@ -1,6 +1,6 @@
# Arsenal for development (which is rare nowadays). ;p
# If you're looking for text editors, go to `./editors.nix`.
{ config, lib, pkgs, ... }:
{ config, lib, pkgs, osConfig ? { } ,... }:
let cfg = config.profiles.dev;
in {
@ -108,6 +108,9 @@ in {
pane_frames = false;
};
};
# Echolocation.
programs.nix-index.enable = lib.mkIf (osConfig ? programs.nix-index.enable -> !osConfig.programs.nix-index.enable) true;
})
(lib.mkIf cfg.shell.enable {