chore(direnv@modules): moved to modules

This commit is contained in:
2025-10-17 13:21:18 +01:00
parent de61a1fc5a
commit 8fd6c8df14
4 changed files with 29 additions and 7 deletions

View File

@@ -28,6 +28,7 @@
tmux.enable = true;
fish.enable = true;
stylix.enable = true;
direnv.enable = true;
};
# Home Manager needs a bit of information about you and the paths it should
# manage.
@@ -102,11 +103,5 @@
# Let Home Manager install and manage itself.
programs = {
home-manager.enable = true;
direnv = {
enable = true;
# enableBashIntegration = true; # see note on other shells below
enableFishIntegration = true;
nix-direnv.enable = true;
};
};
}

View File

@@ -34,6 +34,8 @@
blender.enable = true;
fish.enable = true;
youtube-music.enable = true;
unityhub.enable = true;
direnv.enable = true;
};
# Home Manager needs a bit of information about you and the paths it should
# manage.
@@ -45,6 +47,7 @@
userName = "Doloro1978";
userEmail = "doloroo@proton.me";
};
xdg.mimeApps.enable = true;
# This value determines the Home Manager release that your configuration is
# compatible with. This helps avoid breakage when a new Home Manager release
@@ -68,7 +71,6 @@
btop
sops
alcom
unityhub
];
# sops.age.keyFile = "/home/doloro/.config/sops/age/key.txt";

View File

@@ -0,0 +1,3 @@
_: {
home = ./home.nix;
}

View File

@@ -0,0 +1,22 @@
{
pkgs,
lib,
config,
...
}:
let
cfg = config.modules.direnv;
in
{
options.modules.direnv = {
enable = lib.mkEnableOption "direnv";
};
config = lib.mkIf cfg.enable {
programs.direnv = {
enable = true;
# enableBashIntegration = true; # see note on other shells below
enableFishIntegration = true;
nix-direnv.enable = true;
};
};
}