core: use direct envrioment.variables for setting nvim as default editor
programs.neovim.defaultEditor only sets "nvim" which is dependent on the PATH, I don't want that
This commit is contained in:
parent
04767f4059
commit
cab57d1dcc
1 changed files with 6 additions and 2 deletions
|
@ -2,7 +2,7 @@
|
||||||
# your system. Help is available in the configuration.nix(5) man page
|
# your system. Help is available in the configuration.nix(5) man page
|
||||||
# and in the NixOS manual (accessible by running 'nixos-help').
|
# and in the NixOS manual (accessible by running 'nixos-help').
|
||||||
|
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
# Bootloader.
|
# Bootloader.
|
||||||
|
@ -65,7 +65,6 @@
|
||||||
programs.neovim = {
|
programs.neovim = {
|
||||||
enable = true;
|
enable = true;
|
||||||
viAlias = true;
|
viAlias = true;
|
||||||
defaultEditor = true;
|
|
||||||
configure = {
|
configure = {
|
||||||
customRC = ''
|
customRC = ''
|
||||||
set number
|
set number
|
||||||
|
@ -92,6 +91,11 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
environment.variables = lib.mkIf config.programs.neovim.enable {
|
||||||
|
EDITOR = "${config.programs.neovim.finalPackage}/bin/nvim";
|
||||||
|
VISUAL = "${config.programs.neovim.finalPackage}/bin/nvim";
|
||||||
|
};
|
||||||
|
|
||||||
programs.steam = {
|
programs.steam = {
|
||||||
enable = true;
|
enable = true;
|
||||||
remotePlay.openFirewall = true;
|
remotePlay.openFirewall = true;
|
||||||
|
|
Loading…
Reference in a new issue