neovim - correct typos 2

This commit is contained in:
2024-03-03 01:41:08 +01:00
parent 78c4624fd6
commit 2e7bcc32ca
4 changed files with 20 additions and 22 deletions

View File

@@ -1,10 +1,9 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
{ {
imports = imports = [ # Include the results of the hardware scan.
[ # Include the results of the hardware scan. ./hardware-configuration.nix
./hardware-configuration.nix ];
];
# Use the systemd-boot EFI boot loader. # Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
@@ -13,7 +12,8 @@
networking.hostName = "eliasLaptop"; # Define your hostname. networking.hostName = "eliasLaptop"; # Define your hostname.
# Pick only one of the below networking options. # Pick only one of the below networking options.
#networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. #networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
networking.networkmanager.enable = true; # Easiest to use and most distros use this by default. networking.networkmanager.enable =
true; # Easiest to use and most distros use this by default.
# Set your time zone. # Set your time zone.
time.timeZone = "Europe/Berlin"; time.timeZone = "Europe/Berlin";
@@ -34,12 +34,8 @@
}; };
defaultSession = "none+xmonad"; defaultSession = "none+xmonad";
}; };
windowManager.xmonad = { windowManager.xmonad = { enable = true; };
enable = true; xkb = { layout = "de"; };
};
xkb = {
layout = "de";
};
}; };
nix.settings.experimental-features = [ "nix-command" "flakes" ]; nix.settings.experimental-features = [ "nix-command" "flakes" ];
@@ -66,7 +62,8 @@
home = "/home/elias"; home = "/home/elias";
shell = pkgs.zsh; shell = pkgs.zsh;
extraGroups = [ "wheel" "networkmanager" ]; extraGroups = [ "wheel" "networkmanager" ];
hashedPassword = "$6$pdAJt1f0v7Zb13Ri$1WpKrErAp5JCb7eXs7EeeWYRMBLu5/WKDdMyGzJyYQDijG2NiywUXpAkl/8p1noxOOqYbb.MTw7JmTzhWGsT21"; hashedPassword =
"$6$pdAJt1f0v7Zb13Ri$1WpKrErAp5JCb7eXs7EeeWYRMBLu5/WKDdMyGzJyYQDijG2NiywUXpAkl/8p1noxOOqYbb.MTw7JmTzhWGsT21";
}; };
}; };

View File

@@ -1,15 +1,18 @@
{ ... }: { pkgs, ... }:
{ {
home.packages = with pkgs; [ fira-code alacritty-theme ];
programs.alacritty = { programs.alacritty = {
enable = true; enable = true;
settings = { settings = {
env = { env = { "TERM" = "xterm-256color"; };
"TERM" = "xterm-256color";
};
font = { font = {
size = 10; size = 10;
normal.family = "Fira Code";
bold.family = "Fira Code";
italic.family = "Fira Code";
}; };
}; };
}; };

View File

@@ -15,6 +15,8 @@ let
in { in {
home.sessionVariables = { EDITOR = "nvim"; }; home.sessionVariables = { EDITOR = "nvim"; };
home.packages = with pkgs; [ nerdfonts ];
programs.neovim = { programs.neovim = {
enable = true; enable = true;
package = pkgs.neovim-nightly; package = pkgs.neovim-nightly;

View File

@@ -12,9 +12,7 @@
programs.zsh = { programs.zsh = {
enable = true; enable = true;
dotDir = ".config/zsh"; dotDir = ".config/zsh";
shellAliases = { shellAliases = { update = "sudo nixos-rebuild switch"; };
update = "sudo nixos-rebuild switch";
};
enableAutosuggestions = true; enableAutosuggestions = true;
enableCompletion = true; enableCompletion = true;
enableVteIntegration = true; enableVteIntegration = true;
@@ -23,9 +21,7 @@
size = 100000000000; size = 100000000000;
path = "${config.xdg.dataHome}/zsh/zsh_history"; path = "${config.xdg.dataHome}/zsh/zsh_history";
}; };
syntaxHighlighting = { syntaxHighlighting = { enable = true; };
enable = true;
};
initExtra = '' initExtra = ''
PROMPT='%F{green}%n%f@%F{magenta}%m%f %F{blue}%B%~%b%f %# ' PROMPT='%F{green}%n%f@%F{magenta}%m%f %F{blue}%B%~%b%f %# '
RPROMPT='[%F{yellow}%?%f]' RPROMPT='[%F{yellow}%?%f]'