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