refactor: Move user config into modules/

This commit is contained in:
Madeleine Sydney
2025-03-13 11:14:32 -06:00
parent 257f011a99
commit fb3299d89c
85 changed files with 597 additions and 542 deletions

View 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;
};
};
}