mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-07-11 07:02:41 +02:00
fix: set EDITOR=vim
This commit is contained in:
@@ -11,7 +11,7 @@
|
|||||||
"application/xhtml+xml" = browser;
|
"application/xhtml+xml" = browser;
|
||||||
"text/html" = browser;
|
"text/html" = browser;
|
||||||
"x-scheme-handler/about" = browser;
|
"x-scheme-handler/about" = browser;
|
||||||
"x-scheme-handler/chrome" = ["chromium-browser.desktop"];
|
# "x-scheme-handler/chrome" = ["chromium-browser.desktop"];
|
||||||
"x-scheme-handler/ftp" = browser;
|
"x-scheme-handler/ftp" = browser;
|
||||||
"x-scheme-handler/http" = browser;
|
"x-scheme-handler/http" = browser;
|
||||||
"x-scheme-handler/https" = browser;
|
"x-scheme-handler/https" = browser;
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
d = config.xdg.dataHome;
|
d = config.xdg.dataHome;
|
||||||
c = config.xdg.configHome;
|
c = config.xdg.configHome;
|
||||||
cache = config.xdg.cacheHome;
|
cache = config.xdg.cacheHome;
|
||||||
in {
|
in rec {
|
||||||
imports = [
|
imports = [
|
||||||
./nushell
|
./nushell
|
||||||
./common.nix
|
./common.nix
|
||||||
@@ -19,7 +19,6 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
# add environment variables
|
# add environment variables
|
||||||
# 注意不要用 home.sessionVariables 或 home.xxx.sessionVariables,这俩参数没用
|
|
||||||
systemd.user.sessionVariables = {
|
systemd.user.sessionVariables = {
|
||||||
# clean up ~
|
# clean up ~
|
||||||
LESSHISTFILE = cache + "/less/history";
|
LESSHISTFILE = cache + "/less/history";
|
||||||
@@ -28,7 +27,7 @@ in {
|
|||||||
XAUTHORITY = "$XDG_RUNTIME_DIR/Xauthority";
|
XAUTHORITY = "$XDG_RUNTIME_DIR/Xauthority";
|
||||||
|
|
||||||
# set default applications
|
# set default applications
|
||||||
EDITOR = "vim";
|
EDITOR = "vim"; # this variable not work, need to set environment.variables.EDITOR instead.
|
||||||
BROWSER = "firefox";
|
BROWSER = "firefox";
|
||||||
TERMINAL = "alacritty";
|
TERMINAL = "alacritty";
|
||||||
|
|
||||||
@@ -38,6 +37,8 @@ in {
|
|||||||
MANPAGER = "sh -c 'col -bx | bat -l man -p'";
|
MANPAGER = "sh -c 'col -bx | bat -l man -p'";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
home.sessionVariables = systemd.user.sessionVariables;
|
||||||
|
|
||||||
home.shellAliases = {
|
home.shellAliases = {
|
||||||
k = "kubectl";
|
k = "kubectl";
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -157,6 +157,7 @@
|
|||||||
minicom
|
minicom
|
||||||
];
|
];
|
||||||
|
|
||||||
|
environment.variables.EDITOR = "vim";
|
||||||
|
|
||||||
# Enable sound with pipewire.
|
# Enable sound with pipewire.
|
||||||
sound.enable = true;
|
sound.enable = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user