diff --git a/flake.nix b/flake.nix index e7ae05d..a67a97e 100644 --- a/flake.nix +++ b/flake.nix @@ -76,14 +76,12 @@ #inputs.nixpkgs.follows = "nixpkgs"; #inputs.home-manager.follows = "home-manager"; }; - }; outputs = { self , disko , dns - , stylix , doom-emacs-nix , emacs-overlay , grocy-scanner @@ -105,6 +103,7 @@ , retiolum , secrets , sops-nix + , stylix }: let system = "x86_64-linux"; diff --git a/nixos/components/gui/home-manager/default.nix b/nixos/components/gui/home-manager/default.nix index 0b67dcf..888331b 100644 --- a/nixos/components/gui/home-manager/default.nix +++ b/nixos/components/gui/home-manager/default.nix @@ -30,7 +30,7 @@ with lib; key = "42AC51C9482D0834CF488AF1389EC2D64AC71EAC"; signByDefault = true; }; - ignores = [ "*.swp" "*~" ".idea" ".*penis.*" "result" ".envrc" ]; + ignores = [ "*.swp" "*~" ".idea" ".*penis.*" "result" ".envrc" ".direnv" ]; extraConfig = { init.defaultBranch = "main"; pull.ff = "only"; diff --git a/nixos/components/terminal/direnv.nix b/nixos/components/terminal/direnv.nix index a90e847..c0a8dd9 100644 --- a/nixos/components/terminal/direnv.nix +++ b/nixos/components/terminal/direnv.nix @@ -9,7 +9,12 @@ with lib; environment.systemPackages = [ pkgs.direnv ]; - home-manager.users.mainUser.programs.direnv.enable = true; + home-manager.sharedModules = [ + { + programs.direnv.enable = true; + programs.git.ignores = [ ".envrc" ".direnv" ]; + } + ]; programs.zsh.interactiveShellInit = '' eval "$(${pkgs.direnv}/bin/direnv hook zsh)"