refactor: Move user config into modules/
This commit is contained in:
15
modules/home/users/crumb/direnv.nix
Normal file
15
modules/home/users/crumb/direnv.nix
Normal file
@@ -0,0 +1,15 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.sydnix.users.crumb.direnv;
|
||||
in {
|
||||
options.sydnix.users.crumb.direnv.enable =
|
||||
lib.mkEnableOption "direnv, à la crumb";
|
||||
config = lib.mkIf cfg.enable {
|
||||
programs.direnv = {
|
||||
enable = true;
|
||||
nix-direnv.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user