mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-25 02:08:29 +02:00
fix: EDITOR, replace neofetch with fastfetch
This commit is contained in:
@@ -3,7 +3,6 @@
|
|||||||
neovim = {
|
neovim = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
defaultEditor = true;
|
|
||||||
viAlias = true;
|
viAlias = true;
|
||||||
vimAlias = true;
|
vimAlias = true;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ in {
|
|||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs-unstable.neovim-unwrapped;
|
package = pkgs-unstable.neovim-unwrapped;
|
||||||
|
|
||||||
defaultEditor = true;
|
# defaultEditor = true; # set EDITOR at system-wide level
|
||||||
viAlias = true;
|
viAlias = true;
|
||||||
vimAlias = true;
|
vimAlias = true;
|
||||||
|
|
||||||
|
|||||||
@@ -19,7 +19,16 @@
|
|||||||
# https://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/tools/package-management/nix/default.nix#L284
|
# https://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/tools/package-management/nix/default.nix#L284
|
||||||
nix.package = pkgs.nixVersions.latest;
|
nix.package = pkgs.nixVersions.latest;
|
||||||
|
|
||||||
|
# for security reasons, do not load neovim's user config
|
||||||
|
# since EDITOR may be used to edit some critical files
|
||||||
|
environment.variables.EDITOR = "nvim --clean";
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
# core tools
|
||||||
|
fastfetch
|
||||||
|
neovim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
|
||||||
|
just # justfile
|
||||||
|
nushell # nushell
|
||||||
git # used by nix flakes
|
git # used by nix flakes
|
||||||
git-lfs # used by huggingface models
|
git-lfs # used by huggingface models
|
||||||
|
|
||||||
|
|||||||
@@ -72,10 +72,6 @@ in {
|
|||||||
{
|
{
|
||||||
# Fix https://github.com/LnL7/nix-darwin/wiki/Terminfo-issues
|
# Fix https://github.com/LnL7/nix-darwin/wiki/Terminfo-issues
|
||||||
TERMINFO_DIRS = map (path: path + "/share/terminfo") config.environment.profiles ++ ["/usr/share/terminfo"];
|
TERMINFO_DIRS = map (path: path + "/share/terminfo") config.environment.profiles ++ ["/usr/share/terminfo"];
|
||||||
|
|
||||||
# for security reasons, do not load neovim's user config
|
|
||||||
# since EDITOR may be used to edit some critical files
|
|
||||||
EDITOR = "nvim --clean";
|
|
||||||
}
|
}
|
||||||
# Set variables for you to manually install homebrew packages.
|
# Set variables for you to manually install homebrew packages.
|
||||||
// homebrew_mirror_env;
|
// homebrew_mirror_env;
|
||||||
|
|||||||
@@ -2,11 +2,6 @@
|
|||||||
# List packages installed in system profile. To search, run:
|
# List packages installed in system profile. To search, run:
|
||||||
# $ nix search wget
|
# $ nix search wget
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
neofetch
|
|
||||||
neovim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
|
|
||||||
just # justfile
|
|
||||||
nushell # nushell
|
|
||||||
|
|
||||||
# system call monitoring
|
# system call monitoring
|
||||||
strace # system call monitoring
|
strace # system call monitoring
|
||||||
ltrace # library call monitoring
|
ltrace # library call monitoring
|
||||||
@@ -41,7 +36,4 @@
|
|||||||
# BCC - Tools for BPF-based Linux IO analysis, networking, monitoring, and more
|
# BCC - Tools for BPF-based Linux IO analysis, networking, monitoring, and more
|
||||||
# https://github.com/iovisor/bcc
|
# https://github.com/iovisor/bcc
|
||||||
programs.bcc.enable = true;
|
programs.bcc.enable = true;
|
||||||
|
|
||||||
# replace default editor with neovim
|
|
||||||
environment.variables.EDITOR = "nvim";
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user