how to allow unfree? I want a working prototype on neovim config ASAP

nix-components
pegasust 2022-11-29 16:08:44 -07:00
parent f80854b200
commit 184496d5e8
3 changed files with 13 additions and 4 deletions

View File

@ -100,7 +100,10 @@
myHome = { myHome = {
username = "hwtr"; username = "hwtr";
homeDirectory = "/home/hwtr"; homeDirectory = "/home/hwtr";
packages = [ pkgs.nixgl.nixGLIntel pkgs.postman ]; packages = [
pkgs.nixgl.nixGLIntel
# pkgs.postman
];
shellAliases = { shellAliases = {
nixGL = "nixGLIntel"; nixGL = "nixGLIntel";
}; };

View File

@ -18,8 +18,13 @@
pkgs.zk pkgs.zk
pkgs.unzip pkgs.unzip
pkgs.rust-bin.nightly.latest.default pkgs.rust-bin.nightly.latest.default
# pkgs.nodejs-18_x # pkgs.nodejs-18_x
# pkgs.rust-analyzer # pkgs.rust-analyzer
# Yes, I desperately want neovim to work out-of-the-box without flake.nix for now
pkgs.tree-sitter
pkgs.nodejs
pkgs.yq pkgs.yq
pkgs.python39Full pkgs.python39Full
pkgs.xorg.xclock # TODO: only include if have GL pkgs.xorg.xclock # TODO: only include if have GL
@ -33,7 +38,6 @@
# pkgs.python310Packages.tensorflow # pkgs.python310Packages.tensorflow
# pkgs.python310Packages.scikit-learn # pkgs.python310Packages.scikit-learn
] ++ (myHome.packages or [ ]); ] ++ (myHome.packages or [ ]);
nixpkgs.config.allowUnfree = true;
## Configs ## ## Configs ##
xdg.configFile."nvim/init.lua".text = builtins.readFile ../neovim/init.lua; xdg.configFile."nvim/init.lua".text = builtins.readFile ../neovim/init.lua;
@ -121,8 +125,8 @@
}; };
# No idea why this is not appearing in home-manager search # No idea why this is not appearing in home-manager search
# It's in source code, though # It's in source code, though
userName="pegasust"; userName = "pegasust";
userEmail="pegasucksgg@gmail.com"; userEmail = "pegasucksgg@gmail.com";
extraConfig = { extraConfig = {
merge = { tool = "vimdiff"; conflictstyle = "diff3"; }; merge = { tool = "vimdiff"; conflictstyle = "diff3"; };
}; };

View File

@ -146,6 +146,8 @@ colorscheme gruvbox
require('hlargs').setup() require('hlargs').setup()
require('nvim-web-devicons').setup() require('nvim-web-devicons').setup()
require('trouble').setup() require('trouble').setup()
-- TODO: Any way to collect all the TODOs and its variants?
require('todo-comments').setup() require('todo-comments').setup()
-- plugin keymaps -- plugin keymaps