wip(home): refactor home modules *WILL NOT BUILD*
This commit is contained in:
parent
2033810429
commit
6a591ecbf7
115 changed files with 1028 additions and 791 deletions
21
home/modules/console/tools/nixIndex.nix
Normal file
21
home/modules/console/tools/nixIndex.nix
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{ lib, config, inputs, ... }:
|
||||
|
||||
let
|
||||
inherit (lib) mkIf;
|
||||
cfg = config.ooknet.tools.nixIndex;
|
||||
in
|
||||
|
||||
{
|
||||
imports = [ inputs.nix-index-db.hmModules.nix-index ];
|
||||
config = mkIf cfg.enable {
|
||||
programs = {
|
||||
nix-index = {
|
||||
enable = true;
|
||||
symlinkToCacheHome = true;
|
||||
};
|
||||
command-not-found.enable = false;
|
||||
nix-index-database.comma.enable = true;
|
||||
};
|
||||
home.sessionVariables.NIX_AUTO_RUN = "1";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue