added neovim

This commit is contained in:
fwastring 2025-09-04 09:16:25 +02:00
parent 6738bebeb8
commit 2d0105093e
2 changed files with 24 additions and 2 deletions

View file

@ -24,6 +24,8 @@
../shared/aerc.nix
../shared/oh-my-posh.nix
../shared/gtk.nix
../shared/neovim.nix
# ../shared/hyprland.nix
];
nixpkgs = {
@ -38,8 +40,8 @@
programs.fish.enable = true;
programs.man.generateCaches = false;
xsession.enable = true;
xsession.windowManager.command = "xrandr --output eDP-1 --mode 1920x1080 --pos 0x1080 --rotate normal --output DP-1 --off --output HDMI-1 --primary --mode 3840x2160 --pos 1920x0 --rotate normal --output DP-2 --off --output HDMI-2 --off";
# xsession.enable = true;
# xsession.windowManager.command = "xrandr --output eDP-1 --mode 1920x1080 --pos 0x1080 --rotate normal --output DP-1 --off --output HDMI-1 --primary --mode 3840x2160 --pos 1920x0 --rotate normal --output DP-2 --off --output HDMI-2 --off";
home.username = "fw";
home.homeDirectory = "/home/fw";

20
shared/neovim.nix Normal file
View file

@ -0,0 +1,20 @@
{ config, pkgs, ... }:
let
# Replace with the URL of your Neovim configuration GitHub repository
neovimConfig = builtins.fetchGit {
url = "https://github.com/fwastring/nvim.git";
# Optional: specify a specific branch, tag, or commit hash
ref = "main";
};
in
{
# Enable the Home Manager Neovim module if you haven't already
# programs.neovim.enable = true;
# Create a symlink from the Nix store to the Neovim config directory
xdg.configFile."nvim".source = neovimConfig;
# Other Home Manager options...
}