From 02e78ddd47a8fffc62216d69befc47ceb098a9c7 Mon Sep 17 00:00:00 2001 From: Skullheadx Date: Mon, 29 Jun 2026 11:17:12 -0400 Subject: fix nvim darwin --- bash.nix | 45 +++++++++++++++++++++++++++++++++ darwin-common.nix | 2 +- flake.nix | 22 ++++++++++------- hosts/bear/configuration.nix | 5 ++-- hosts/kenosis/configuration.nix | 4 +-- hosts/nepsis/configuration.nix | 1 - linux-common.nix | 2 +- nvf/nvf.nix | 28 ++++++++++----------- sh.nix | 55 ----------------------------------------- vim.nix | 4 +-- zsh.nix | 16 ++++++++++++ 11 files changed, 96 insertions(+), 88 deletions(-) create mode 100644 bash.nix delete mode 100644 sh.nix create mode 100644 zsh.nix diff --git a/bash.nix b/bash.nix new file mode 100644 index 0000000..4de93db --- /dev/null +++ b/bash.nix @@ -0,0 +1,45 @@ +{ + config, + pkgs, + ... +}: { + programs.bash = { + enable = true; + interactiveShellInit = '' + shopt -s autocd + shopt -s cdable_vars + shopt -s cdspell + shopt -s dirspell + shopt -s checkjobs + shopt -s cmdhist + shopt -s histappend + shopt -s globstar + shopt -s extglob + ''; + promptInit = '' + PS1="\[\e[97m\][\[\e[m\]\[\e[92m\]\u\[\e[m\]\[\e[32m\]@\[\e[m\]\[\e[92m\]\h\[\e[m\]:\[\e[92m\]\w\[\e[m\]\[\e[97m\]]\[\e[m\]\[\e[97m\]\\$\[\e[m\] " + ''; + shellAliases = { + nix-sw = "sudo nixos-rebuild switch --flake ."; + nix-upd-sl = "sudo nix flake update my-slstatus my-dwm my-surf my-st my-dmenu"; + }; + }; + + environment.etc."inputrc".text = '' + set editing-mode vi + set show-mode-in-prompt on + set keyseq-timeout 10 + + set vi-ins-mode-string "\1\e[5 q\2" + set vi-cmd-mode-string "\1\e[2 q\2" + + + set colored-stats on + set colored-completion-prefix on + set blink-matching-paren on + + set completion-ignore-case on + set show-all-if-ambiguous on + set completion-map-case on + ''; +} diff --git a/darwin-common.nix b/darwin-common.nix index 9c52c20..9351cca 100644 --- a/darwin-common.nix +++ b/darwin-common.nix @@ -5,7 +5,7 @@ ... }: { imports = [ - ./sh.nix + ./zsh.nix ]; # List packages installed in system profile. To search by name, run: diff --git a/flake.nix b/flake.nix index c4caa2d..b791f40 100644 --- a/flake.nix +++ b/flake.nix @@ -60,16 +60,20 @@ } @ inputs: let system = "x86_64-linux"; pkgs = nixpkgs.legacyPackages.${system}; - customNeovim = nvf.lib.neovimConfiguration { + nvim = nvf.lib.neovimConfiguration { inherit pkgs; modules = [./nvf/nvf.nix]; }; - system2 = "aarch64-darwin"; - darwin-pkgs = nixpkgs.legacyPackages.${system2}; + system-darwin = "aarch64-darwin"; + pkgs-darwin = nixpkgs.legacyPackages.${system-darwin}; + nvim-darwin = nvf.lib.neovimConfiguration { + pkgs = pkgs-darwin; + modules = [./nvf/nvf.nix]; + }; in { nixosConfigurations.nepsis = nixpkgs.lib.nixosSystem { - specialArgs = {inherit inputs customNeovim;}; + specialArgs = {inherit inputs nvim;}; modules = [ hjem.nixosModules.default ./linux-common.nix @@ -78,7 +82,7 @@ ]; }; nixosConfigurations.icon = nixpkgs.lib.nixosSystem { - specialArgs = {inherit inputs customNeovim;}; + specialArgs = {inherit inputs nvim;}; modules = [ hjem.nixosModules.default ./linux-common.nix @@ -87,12 +91,12 @@ ]; }; - packages.${system}.my-neovim = customNeovim.neovim; + packages.${system}.nvim = nvim.neovim; + packages.${system-darwin}.nvim = nvim-darwin.neovim; - packages.${system2}.my-neovim = customNeovim.neovim; darwinConfigurations = { kenosis = nix-darwin.lib.darwinSystem { - specialArgs = {inherit inputs customNeovim;}; + specialArgs = {inherit inputs nvim-darwin;}; modules = [ ./darwin-common.nix ./hosts/kenosis/configuration.nix @@ -116,7 +120,7 @@ ]; }; bear = nix-darwin.lib.darwinSystem { - specialArgs = {inherit inputs customNeovim;}; + specialArgs = {inherit inputs nvim-darwin;}; modules = [ ./darwin-common.nix ./hosts/bear/configuration.nix diff --git a/hosts/bear/configuration.nix b/hosts/bear/configuration.nix index ef46691..ae17167 100644 --- a/hosts/bear/configuration.nix +++ b/hosts/bear/configuration.nix @@ -2,7 +2,7 @@ config, pkgs, inputs, - customNeovim, + nvim-darwin, ... }: { networking = { @@ -15,13 +15,12 @@ # List packages installed in system profile. To search by name, run: # $ nix-env -qaP | grep wget environment.systemPackages = with pkgs; [ - customNeovim.neovim + nvim-darwin.neovim senpai mpv pass passExtensions.pass-otp passExtensions.pass-update - passExtensions.pass-import ]; programs.ssh = { diff --git a/hosts/kenosis/configuration.nix b/hosts/kenosis/configuration.nix index 637db89..8c2df15 100644 --- a/hosts/kenosis/configuration.nix +++ b/hosts/kenosis/configuration.nix @@ -2,7 +2,7 @@ config, pkgs, inputs, - customNeovim, + nvim, ... }: { networking = { @@ -35,7 +35,7 @@ librewolf lazygit fastfetch - customNeovim.neovim + nvim.neovim git go-swag blender diff --git a/hosts/nepsis/configuration.nix b/hosts/nepsis/configuration.nix index 980fc31..0cf4c69 100644 --- a/hosts/nepsis/configuration.nix +++ b/hosts/nepsis/configuration.nix @@ -11,7 +11,6 @@ ./../../hjem.nix ./../../audio.nix ./../../vim.nix - ./../../sh.nix ]; networking.hostName = "nepsis"; diff --git a/linux-common.nix b/linux-common.nix index 024646c..8dae24d 100644 --- a/linux-common.nix +++ b/linux-common.nix @@ -5,7 +5,7 @@ ... }: { imports = [ - ./sh.nix + ./bash.nix ]; # Bootloader. diff --git a/nvf/nvf.nix b/nvf/nvf.nix index 0903c5d..34597f7 100644 --- a/nvf/nvf.nix +++ b/nvf/nvf.nix @@ -241,16 +241,16 @@ docker-language-server gopls golangci-lint-langserver - vscode-langservers-extracted - emmet-language-server + # vscode-langservers-extracted + # emmet-language-server lua-language-server marksman nixd - basedpyright - ruff - sqls - deno - vtsls + # basedpyright + # ruff + # sqls + # deno + # vtsls yaml-language-server zls @@ -262,7 +262,7 @@ jq stylua nixpkgs-fmt - sqlfluff + # sqlfluff prettypst # linter @@ -273,14 +273,14 @@ golangci-lint selene markdownlint-cli2 - statix - eslint - yamllint + # statix + # eslint + # yamllint # debugger - lldb - delve - python313Packages.debugpy + # lldb + # delve + # python313Packages.debugpy # tree sitter tree-sitter diff --git a/sh.nix b/sh.nix deleted file mode 100644 index be2975e..0000000 --- a/sh.nix +++ /dev/null @@ -1,55 +0,0 @@ -{ - config, - pkgs, - ... -}: { - programs.bash = { - enable = true; - interactiveShellInit = '' - shopt -s autocd - shopt -s cdable_vars - shopt -s cdspell - shopt -s dirspell - shopt -s checkjobs - shopt -s cmdhist - shopt -s histappend - shopt -s globstar - shopt -s extglob - ''; - promptInit = '' - PS1="\[\e[97m\][\[\e[m\]\[\e[92m\]\u\[\e[m\]\[\e[32m\]@\[\e[m\]\[\e[92m\]\h\[\e[m\]:\[\e[92m\]\w\[\e[m\]\[\e[97m\]]\[\e[m\]\[\e[97m\]\\$\[\e[m\] " - ''; - shellAliases = { - nix-sw = "sudo nixos-rebuild switch --flake ."; - nix-upd-sl = "sudo nix flake update my-slstatus my-dwm my-surf my-st my-dmenu"; - }; - }; - programs.zsh = { - enable = true; - enableAutosuggestions = true; - enableBashCompletion = true; - enableCompletion = true; - enableFastSyntaxHighlighting = true; - enableFzfCompletion = true; - enableFzfGit = true; - enableFzfHistory = true; - }; - - environment.etc."inputrc".text = '' - set editing-mode vi - set show-mode-in-prompt on - set keyseq-timeout 10 - - set vi-ins-mode-string "\1\e[5 q\2" - set vi-cmd-mode-string "\1\e[2 q\2" - - - set colored-stats on - set colored-completion-prefix on - set blink-matching-paren on - - set completion-ignore-case on - set show-all-if-ambiguous on - set completion-map-case on - ''; -} diff --git a/vim.nix b/vim.nix index 0c58e42..8cfc744 100644 --- a/vim.nix +++ b/vim.nix @@ -1,7 +1,7 @@ { config, pkgs, - customNeovim, + nvim, ... }: { environment.systemPackages = with pkgs; [ @@ -14,7 +14,7 @@ ''; }) - customNeovim.neovim + nvim.neovim ]; environment.etc."vimrc".text = '' diff --git a/zsh.nix b/zsh.nix new file mode 100644 index 0000000..4c8154a --- /dev/null +++ b/zsh.nix @@ -0,0 +1,16 @@ +{ + config, + pkgs, + ... +}: { + programs.zsh = { + enable = true; + enableAutosuggestions = true; + enableBashCompletion = true; + enableCompletion = true; + enableFastSyntaxHighlighting = true; + enableFzfCompletion = true; + enableFzfGit = true; + enableFzfHistory = true; + }; +} -- cgit v1.3.1