From 95f78ddf564e7caf6bee31f5980261c647f07072 Mon Sep 17 00:00:00 2001 From: Maddie H Date: Mon, 14 Oct 2024 17:17:30 +0100 Subject: [PATCH] fix: make the default editor neovim on macos too --- homes/common/neovim.nix | 2 ++ homes/common/xdg.nix | 1 + homes/desktop/xdg.nix | 14 +++++--------- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/homes/common/neovim.nix b/homes/common/neovim.nix index 2a8cc97..32b9e62 100644 --- a/homes/common/neovim.nix +++ b/homes/common/neovim.nix @@ -5,4 +5,6 @@ inputs.editor.packages.${pkgs.stdenv.hostPlatform.system}.default ]; programs.zsh.shellAliases.vimdiff = "nvim -d"; + + home.sessionVariables.EDITOR = "nvim"; } diff --git a/homes/common/xdg.nix b/homes/common/xdg.nix index f742448..49b0502 100644 --- a/homes/common/xdg.nix +++ b/homes/common/xdg.nix @@ -10,6 +10,7 @@ _JAVA_OPTIONS = "-Djava.util.prefs.userRoot=${config.xdg.configHome}/java"; }; + shellAliases = { wget = "wget --hsts-file='${config.xdg.dataHome}/wget-hsts'"; }; diff --git a/homes/desktop/xdg.nix b/homes/desktop/xdg.nix index 406b930..fc6eeb3 100644 --- a/homes/desktop/xdg.nix +++ b/homes/desktop/xdg.nix @@ -5,6 +5,11 @@ xdg-utils xdg-user-dirs ]; + + home.sessionVariables = { + BROWSER = "librewolf"; + TERMINAL = "alacritty"; + }; xdg = { enable = true; @@ -47,13 +52,4 @@ }; }; }; - - home = { - sessionVariables = { - # Default programs - EDITOR = "nvim"; - TERMINAL = "st"; - BROWSER = "librewolf"; - }; - }; }