fix environment variables
This commit is contained in:
parent
6ab1751794
commit
0122fc11c6
2 changed files with 3 additions and 6 deletions
|
@ -1,10 +1,7 @@
|
|||
{ lib, ... }: {
|
||||
environment.variables = {
|
||||
EDITOR = lib.mkDefault (if builtins.hasAttr "SSH_CONNECTION"
|
||||
builtins.currentSystemEnvironment then
|
||||
"nvim"
|
||||
else
|
||||
"code");
|
||||
EDITOR = "nvim";
|
||||
VISUAL = "code";
|
||||
|
||||
# XDG settings
|
||||
XDG_CONFIG_HOME = lib.mkDefault "$HOME/.config";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue