From 43da9edb4598eef509c481ae0b305384418c45de Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Fri, 5 May 2023 19:41:58 -0700 Subject: home/profiles: move (almost) all modules to profiles This is a major refactor, similar to what was done for the hosts, but in a single commit. --- home/direnv/default.nix | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 home/direnv/default.nix (limited to 'home/direnv') diff --git a/home/direnv/default.nix b/home/direnv/default.nix deleted file mode 100644 index ce4982c..0000000 --- a/home/direnv/default.nix +++ /dev/null @@ -1,30 +0,0 @@ -{ config, lib, pkgs, ... }: -let - cfg = config.my.home.direnv; - fishEnabled = config.my.home.shell.name == "fish"; -in -{ - options.my.home.direnv = with lib; { - enable = mkEnableOption "direnv configuration"; - }; - - config = lib.mkIf cfg.enable { - programs.direnv = { - enable = true; - nix-direnv = { enable = true; }; - config = { - global.disable_stdin = true; - global.strict_env = true; - }; - }; - - programs.fish.interactiveShellInit = lib.mkIf fishEnabled ( - # Using mkAfter to make it more likely to appear after other - # manipulations of the prompt. - lib.mkAfter '' - ${pkgs.direnv}/bin/direnv hook fish | source - ''); - - home.sessionVariables = { DIRENV_DEFAULT_FLAKE = "nixpkgs"; }; - }; -} -- cgit 1.4.1