mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-07 06:19:00 +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
|
# Arsenal for development (which is rare nowadays). ;p
|
||||||
# If you're looking for text editors, go to `./editors.nix`.
|
# If you're looking for text editors, go to `./editors.nix`.
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, osConfig ? { } ,... }:
|
||||||
|
|
||||||
let cfg = config.profiles.dev;
|
let cfg = config.profiles.dev;
|
||||||
in {
|
in {
|
||||||
@ -108,6 +108,9 @@ in {
|
|||||||
pane_frames = false;
|
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 {
|
(lib.mkIf cfg.shell.enable {
|
||||||
|
Loading…
Reference in New Issue
Block a user