aboutsummaryrefslogtreecommitdiff
path: root/nixos
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2026-10-02 15:16:23 +0200
committerMartin Fischer <martin@push-f.com>2026-10-02 18:38:11 +0200
commit1113c658b2285cb939e7ab479aabfaba880c99dc (patch)
treede8f73cfa75f59e9f818feb4ad5abc35036c8813 /nixos
parent11732a457b69c6cd72a38ac17fa6762e221e1ce6 (diff)
tweak(workstation): use neovim instead of vim
Diffstat (limited to 'nixos')
-rw-r--r--nixos/profiles/common/basics.nix2
-rw-r--r--nixos/profiles/server/default.nix4
-rw-r--r--nixos/profiles/workstation/default.nix2
-rw-r--r--nixos/profiles/workstation/pkgs/nvim.nix17
4 files changed, 22 insertions, 3 deletions
diff --git a/nixos/profiles/common/basics.nix b/nixos/profiles/common/basics.nix
index 7facee9..afbeb7b 100644
--- a/nixos/profiles/common/basics.nix
+++ b/nixos/profiles/common/basics.nix
@@ -3,8 +3,6 @@
{
environment.systemPackages = with pkgs; [
git
- # lowPrio because we use vim-full in the workstation profile
- (lib.lowPrio vim)
file
htop
diff --git a/nixos/profiles/server/default.nix b/nixos/profiles/server/default.nix
index 6e744a6..fbdb9da 100644
--- a/nixos/profiles/server/default.nix
+++ b/nixos/profiles/server/default.nix
@@ -6,6 +6,10 @@
./detect-hostname-change.nix
];
+ environment.systemPackages = with pkgs; [
+ vim
+ ];
+
services = {
openssh = {
enable = true;
diff --git a/nixos/profiles/workstation/default.nix b/nixos/profiles/workstation/default.nix
index 9332bca..78d70d2 100644
--- a/nixos/profiles/workstation/default.nix
+++ b/nixos/profiles/workstation/default.nix
@@ -74,7 +74,7 @@ in
(callPackage (sources.my-vdf { inherit pkgs; }) {})
nixfmt
- vim-full
+ (callPackage ./pkgs/nvim.nix {})
cmd50
(writeShellScriptBin "xdg-open" ''
diff --git a/nixos/profiles/workstation/pkgs/nvim.nix b/nixos/profiles/workstation/pkgs/nvim.nix
new file mode 100644
index 0000000..330ee82
--- /dev/null
+++ b/nixos/profiles/workstation/pkgs/nvim.nix
@@ -0,0 +1,17 @@
+{ neovim, vimPlugins }:
+
+neovim.override {
+ vimAlias = true;
+ configure = {
+ # This Nix wrapper set VIMINIT which stops neovim from reading the normal user config.
+ customRC = ''
+ lua dofile(vim.fn.expand("~/.config/nvim/init.lua"))
+ '';
+ packages.myPlugins = {
+ start = with vimPlugins; [
+ mini-pick
+ vscode-nvim
+ ];
+ };
+ };
+}