Comments (14)
alright, my bad.
from nixvim.
from nixvim.
I think this is actually a symptom of a much broader issue, and I'm still trying to pin it down exactly. It works fine with the setup in home-manager
(which is what I think you use, looking at your dotfiles), and package
can be left as default. However, with the setup in nixos
, it breaks a number of things, of which this is just one. With the exact same config as with home-manager
(changing package = pkgs.neovim-unwrapped
), it will install neovim, but it will not apply any configuration or plugins.
from nixvim.
Additional note: home-manager
uses neovim-unwrapped
by default as the base package, so that is why it isn't crashing and burning when you don't set it in that mode. The nixos
module does no such thing.
from nixvim.
Status: I've figured out why the config is not being copied across, you have to add customRC = configure.customRC
in the neovimConfig
definition. Still working on why plugins are being ignored.
from nixvim.
Hey, finally have time to work on this, can you show me what your config looks like? Because I've not had this issue myself.
from nixvim.
nixvim.nix:
{ pkgs, ... }: {
enable = true;
colorscheme = "one";
colorschemes.one.enable = true;
plugins.airline.enable = true;
plugins.lsp.enable = true;
plugins.lsp.servers.rnix-lsp.enable = true;
options = {
shiftwidth = 2;
tabstop = 2;
expandtab = true;
modeline = false;
};
extraConfigLua = ''
vim.opt.formatoptions:remove('t')
vim.opt.linebreak = true
vim.api.nvim_command('filetype indent plugin on')
vim.api.nvim_command('syntax on')
'';
extraPlugins = with pkgs.vimPlugins; [
vim-nix
];
}
flake.nix:
{
description = "My NixOS config";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nixvim.url = "github:pta2002/nixvim";
home-manager.url = "github:nix-community/home-manager";
};
outputs = { self, nixpkgs, nixvim, home-manager, ... } @ inputs:
let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
config = {
allowUnfree = true;
};
};
in {
nixosConfigurations = {
ordoflammae-virtual = nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = inputs;
modules = [
{
boot = {
loader.grub = {
enable = true;
version = 2;
device = "/dev/sda";
};
initrd = {
availableKernelModules = [ "ata_piix" "ohci_pci" "ahci" "sd_mod" "sr_mod" ];
kernelModules = [ ];
};
kernelModules = [ ];
extraModulePackages = [ ];
};
fileSystems = {
"/" = {
device = "/dev/disk/by-label/nixos";
fsType = "ext4";
};
"/nixos" = {
fsType = "vboxsf";
device = "nixos";
options = [ "rw" "nofail" ];
};
};
swapDevices = [
{ device = "/dev/disk/by-label/swap"; }
];
hardware.cpu.intel.updateMicrocode = false;
virtualisation.virtualbox.guest.enable = true;
nix = {
package = pkgs.nixFlakes;
extraOptions = ''
experimental-features = nix-command flakes
'';
};
networking = {
hostName = "ordoflammae-virtual";
useDHCP = false;
interfaces.enp0s3.useDHCP = true;
};
users.users.ordoflammae = {
isNormalUser = true;
extraGroups = [ "wheel" "sudo" "vboxsf" ];
};
environment.systemPackages = with pkgs; [
curl
git
];
imports = [ nixvim.nixosModules.nixvim ];
programs.nixvim = import ./nixvim.nix { inherit pkgs; };
system.stateVersion = "21.11";
}
];
};
};
};
}
My guess is that the reason you haven't seen this is that this is only an issue with nixosModules
, and there are no issues when using the home-manager
setup.
from nixvim.
Seems like it! As part of my work with #16, this should get fixed soon, since I am effectively redoing the whole non-HM setup from scratch.
from nixvim.
I've noticed the same issue as well.
from nixvim.
For now, I'd recomend using the standalone
branch, and not using the NixOS module, instead using the build function and putting it on environment.systemPackages
:
{
environment.systemPackages = [
# ...
(nixvim.build "x86_64-linux" {
colorschemes.gruvbox.enable = true;
# etc...
})
];
}
This branch will get merged soon, I just need to get the NixOS and home-manager modules working, but the standalone build
function is working perfectly fine!
Let me know if you need any help
from nixvim.
i've been using it in home-manager and an alias to use my config. As a side question, is it possible to use nix-colors to create a colorscheme in nixvim?
from nixvim.
i've been using it in home-manager and an alias to use my config. As a side question, is it possible to use nix-colors to create a colorscheme in nixvim?
Please make a new issue for this, I know it's difficult on everyone (maintainer and future readers) when issues are not kept on-topic.
from nixvim.
As a side question, is it possible to use nix-colors to create a colorscheme in nixvim?
There isn't any nix-colors module right now, but I can add one. If you have any extra requests regarding it though, or some idea for how it should work, please do create an issue though!
from nixvim.
I tried to use this package today using the homeManager module but it failed with something like programs.neovim.extraConfig
is no longer a valid option. Any help?
from nixvim.
Related Issues (20)
- extraSettings has no effect HOT 1
- Add coq.thirdparty HOT 2
- nvim-autopairs: Incorrect arg type? HOT 1
- Question about the dependencies of coq-nvim HOT 2
- bufferline - guifg and guibg highlights are deprecated HOT 1
- Unable to configure properly - a unknow reason for all version HOT 13
- mappings `description` is not included by genMaps HOT 1
- Barbar configuration needs to be updated
- Plugin Request: nvim-lastplace
- Plugin Request: nvim-ts-rainbow HOT 1
- Can't change leader when using plugin config HOT 11
- Can't use `"lua"` (and other) plugin config types HOT 3
- error: attribute 'typst-lsp' missing HOT 4
- Nix flake input ignored when using nixvim with home-manager and NixOS HOT 8
- Bug: Undefined nix lib function HOT 3
- Add Tomorrow Night Eighties Color Scheme
- Can't use zls from flake HOT 12
- nvim-tree onAttach not working
- Passing flake inputs to modules in standalone HOT 1
- Feature: parsed lua function and code HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nixvim.