9 lines
196 B
Nix
9 lines
196 B
Nix
{ lib, ... }: {
|
|
environment.variables = {
|
|
EDITOR = lib.mkDefault (if builtins.hasAttr "SSH_CONNECTION"
|
|
builtins.currentSystemEnvironment then
|
|
"nvim"
|
|
else
|
|
"code");
|
|
};
|
|
}
|