home-manager: modularize home configurations
This commit is contained in:
parent
ac9918c759
commit
552cc4f144
16 changed files with 261 additions and 227 deletions
18
modules/home-manager/direnv.nix
Normal file
18
modules/home-manager/direnv.nix
Normal file
|
@ -0,0 +1,18 @@
|
|||
{ config, lib, ... }:
|
||||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.custom-hm.direnv;
|
||||
in
|
||||
{
|
||||
options.custom-hm.direnv = {
|
||||
enable = mkEnableOption "direnv";
|
||||
};
|
||||
config = {
|
||||
programs = mkIf config.custom-hm.direnv.enable {
|
||||
direnv = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue