about summary refs log tree commit diff
path: root/home/fish
diff options
context:
space:
mode:
Diffstat (limited to 'home/fish')
-rw-r--r--home/fish/default.nix30
1 files changed, 0 insertions, 30 deletions
diff --git a/home/fish/default.nix b/home/fish/default.nix
deleted file mode 100644
index 7ff4bbe..0000000
--- a/home/fish/default.nix
+++ /dev/null
@@ -1,30 +0,0 @@
-{ config, lib, pkgs, ... }:
-let
-  cfg = config.my.home.fish;
-  swayEnabled = config.my.home.wm.windowManager == "sway";
-in
-{
-  options.my.home.fish = with lib; {
-    enable = mkEnableOption "fish configuration";
-  };
-  config.programs.fish = lib.mkIf cfg.enable {
-    enable = true;
-    interactiveShellInit = ''
-      set fish_greeting
-
-      # Tmux on terminal start, unless we're in a SSH connection
-      if status is-interactive
-        if test -z "$SSH_CONNECTION"
-          if not tmux has-session 2>/dev/null; or test -z "$TMUX"
-            exec tmux new-session -A -s 0
-          end
-        end
-      end
-    '';
-    loginShellInit = lib.mkIf swayEnabled ''
-      if test -z "$DISPLAY"; and test (tty) = "/dev/tty1"
-        exec sway
-      end
-    '';
-  };
-}