chore(direnv@modules): moved to modules
This commit is contained in:
@@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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";
|
||||
|
||||
|
||||
3
nix/modules/direnv/default.nix
Normal file
3
nix/modules/direnv/default.nix
Normal file
@@ -0,0 +1,3 @@
|
||||
_: {
|
||||
home = ./home.nix;
|
||||
}
|
||||
22
nix/modules/direnv/home.nix
Normal file
22
nix/modules/direnv/home.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user