direnv.nix: init, move direnv to own file
This commit is contained in:
parent
15d2d920b8
commit
41530fa9eb
5 changed files with 31 additions and 7 deletions
|
@ -15,20 +15,27 @@ in {
|
|||
enableDirenv = mkEnableOption "direnv";
|
||||
};
|
||||
|
||||
# NOTE: to keep this configuration sane and simple,
|
||||
# we import the NixOS home manager module instead of the
|
||||
# standalone one.
|
||||
imports = [
|
||||
inputs.home-manager.nixosModules.home-manager
|
||||
];
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
home-manager = {
|
||||
# Verbosity is great, give me verbosity.
|
||||
verbose = true;
|
||||
|
||||
useUserPackages = true;
|
||||
useGlobalPkgs = true;
|
||||
|
||||
#
|
||||
backupFileExtension = "hm.old";
|
||||
extraSpecialArgs = {inherit inputs self impurity;};
|
||||
extraSpecialArgs = {inherit inputs self;};
|
||||
users.${username} = {
|
||||
programs = {
|
||||
home-manager.enable = true;
|
||||
direnv = mkIf cfg.enableDirenv {
|
||||
enable = true;
|
||||
nix-direnv.enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
home = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue