nix-components
pegasust 2022-11-07 18:36:01 +00:00
parent 0146737743
commit 498b049250
2 changed files with 33 additions and 13 deletions

View File

@ -9,27 +9,47 @@
flake-utils.url = "github:numtide/flake-utils"; flake-utils.url = "github:numtide/flake-utils";
}; };
outputs = {nixpkgs, home-manager, ...}: outputs = { nixpkgs, home-manager, ... }:
let system = "x86_64-linux"; let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system}; pkgs = nixpkgs.legacyPackages.${system};
in { in
{
homeConfigurations.nixos = home-manager.lib.homeManagerConfiguration { homeConfigurations.nixos = home-manager.lib.homeManagerConfiguration {
inherit pkgs; inherit pkgs;
username = "nixos"; modules = [
homeDirectory = "/home/nixos"; ./home.nix
modules = [./home.nix]; {
home = {
username = "nixos";
homeDirectory = "/home/nixos";
};
}
];
}; };
homeConfigurations.ubuntu_admin = home-manager.lib.homeManagerConfiguration { homeConfigurations.ubuntu_admin = home-manager.lib.homeManagerConfiguration {
inherit pkgs; inherit pkgs;
username = "ubuntu_admin"; modules = [
homeDirectory = "/home/ubuntu_admin"; ./home.nix
modules = [./home.nix]; {
home = {
username = "ubuntu_admin";
homeDirectory = "/home/ubuntu_admin";
};
}
];
}; };
homeConfigurations.hwtr = home-manager.lib.homeManagerConfiguration { homeConfigurations.hwtr = home-manager.lib.homeManagerConfiguration {
inherit pkgs; inherit pkgs;
username = "hwtr"; modules = [
homeDirectory = "/home/hwtr"; ./home.nix
modules = [./home.nix]; {
home = {
username = "hwtr";
homeDirectory = "/home/hwtr";
};
}
];
}; };
}; };
} }

View File

@ -415,7 +415,7 @@ local on_attach = function(_client, bufnr)
end end
-- nvim-cmp supports additional completion capabilities -- nvim-cmp supports additional completion capabilities
local capabilities = require('cmp_nvim_lsp').update_capabilities(vim.lsp.protocol.make_client_capabilities()) local capabilities = require('cmp_nvim_lsp').default_capabilities(vim.lsp.protocol.make_client_capabilities())
-- local tabnine = require('cmp_tabnine.config') -- local tabnine = require('cmp_tabnine.config')
-- tabnine.setup({ -- tabnine.setup({
-- max_lines = 1000, -- max_lines = 1000,