From 2e7bcc32ca98066a8bdabc4c64ae90e5a1c5f798 Mon Sep 17 00:00:00 2001 From: 4Lost Date: Sun, 3 Mar 2024 01:41:08 +0100 Subject: [PATCH] neovim - correct typos 2 --- configuration.nix | 21 +++++++++------------ home/programs/alacritty/default.nix | 11 +++++++---- home/programs/neovim/default.nix | 2 ++ home/programs/zsh/default.nix | 8 ++------ 4 files changed, 20 insertions(+), 22 deletions(-) diff --git a/configuration.nix b/configuration.nix index bc87d57..4ab2b90 100644 --- a/configuration.nix +++ b/configuration.nix @@ -1,10 +1,9 @@ { config, lib, pkgs, ... }: { - imports = - [ # Include the results of the hardware scan. - ./hardware-configuration.nix - ]; + imports = [ # Include the results of the hardware scan. + ./hardware-configuration.nix + ]; # Use the systemd-boot EFI boot loader. boot.loader.systemd-boot.enable = true; @@ -13,7 +12,8 @@ networking.hostName = "eliasLaptop"; # Define your hostname. # Pick only one of the below networking options. #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. time.timeZone = "Europe/Berlin"; @@ -34,12 +34,8 @@ }; defaultSession = "none+xmonad"; }; - windowManager.xmonad = { - enable = true; - }; - xkb = { - layout = "de"; - }; + windowManager.xmonad = { enable = true; }; + xkb = { layout = "de"; }; }; nix.settings.experimental-features = [ "nix-command" "flakes" ]; @@ -66,7 +62,8 @@ home = "/home/elias"; shell = pkgs.zsh; extraGroups = [ "wheel" "networkmanager" ]; - hashedPassword = "$6$pdAJt1f0v7Zb13Ri$1WpKrErAp5JCb7eXs7EeeWYRMBLu5/WKDdMyGzJyYQDijG2NiywUXpAkl/8p1noxOOqYbb.MTw7JmTzhWGsT21"; + hashedPassword = + "$6$pdAJt1f0v7Zb13Ri$1WpKrErAp5JCb7eXs7EeeWYRMBLu5/WKDdMyGzJyYQDijG2NiywUXpAkl/8p1noxOOqYbb.MTw7JmTzhWGsT21"; }; }; diff --git a/home/programs/alacritty/default.nix b/home/programs/alacritty/default.nix index 8ce5ef8..4cc1c11 100644 --- a/home/programs/alacritty/default.nix +++ b/home/programs/alacritty/default.nix @@ -1,15 +1,18 @@ -{ ... }: +{ pkgs, ... }: { + home.packages = with pkgs; [ fira-code alacritty-theme ]; + programs.alacritty = { enable = true; settings = { - env = { - "TERM" = "xterm-256color"; - }; + env = { "TERM" = "xterm-256color"; }; font = { size = 10; + normal.family = "Fira Code"; + bold.family = "Fira Code"; + italic.family = "Fira Code"; }; }; }; diff --git a/home/programs/neovim/default.nix b/home/programs/neovim/default.nix index 6bea081..9a5e816 100644 --- a/home/programs/neovim/default.nix +++ b/home/programs/neovim/default.nix @@ -15,6 +15,8 @@ let in { home.sessionVariables = { EDITOR = "nvim"; }; + home.packages = with pkgs; [ nerdfonts ]; + programs.neovim = { enable = true; package = pkgs.neovim-nightly; diff --git a/home/programs/zsh/default.nix b/home/programs/zsh/default.nix index 517bb47..b8aa648 100644 --- a/home/programs/zsh/default.nix +++ b/home/programs/zsh/default.nix @@ -12,9 +12,7 @@ programs.zsh = { enable = true; dotDir = ".config/zsh"; - shellAliases = { - update = "sudo nixos-rebuild switch"; - }; + shellAliases = { update = "sudo nixos-rebuild switch"; }; enableAutosuggestions = true; enableCompletion = true; enableVteIntegration = true; @@ -23,9 +21,7 @@ size = 100000000000; path = "${config.xdg.dataHome}/zsh/zsh_history"; }; - syntaxHighlighting = { - enable = true; - }; + syntaxHighlighting = { enable = true; }; initExtra = '' PROMPT='%F{green}%n%f@%F{magenta}%m%f %F{blue}%B%~%b%f %# ' RPROMPT='[%F{yellow}%?%f]'