mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 04:58:01 +00:00
profiles/dev: set conditional nix-index module for home-manager
This commit is contained in:
parent
33294cd8c4
commit
6dbe0c2c23
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user