diff --git a/config/home.nix b/config/home.nix index 692da5b..5d5ec8f 100644 --- a/config/home.nix +++ b/config/home.nix @@ -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"; diff --git a/shared/neovim.nix b/shared/neovim.nix new file mode 100644 index 0000000..4ccc5ec --- /dev/null +++ b/shared/neovim.nix @@ -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... +}