aboutsummaryrefslogtreecommitdiff
path: root/home/direnv/default.nix
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2023-05-05 19:41:58 -0700
committerFranck Cuny <franck@fcuny.net>2023-05-05 19:41:58 -0700
commit43da9edb4598eef509c481ae0b305384418c45de (patch)
treea0ad614c90102757143e026e4fe1806431a3dbf4 /home/direnv/default.nix
parentprofiles/default: users are immutable (diff)
downloadinfra-43da9edb4598eef509c481ae0b305384418c45de.tar.gz
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.
Diffstat (limited to 'home/direnv/default.nix')
-rw-r--r--home/direnv/default.nix30
1 files changed, 0 insertions, 30 deletions
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"; };
- };
-}