neovim lspconfig

This commit is contained in:
Tristan 2023-12-23 15:43:26 +00:00
parent fb5c04a84a
commit 34aaaf63d2
29 changed files with 1705 additions and 1399 deletions

View file

@ -1,22 +1,23 @@
# https://search.nixos.org/options
user: { config, pkgs, lib, ... }:
{
user: {
config,
pkgs,
lib,
...
}: {
home-manager.users.${user}.imports = [
./home.nix
];
nix.settings = {
experimental-features = [ "nix-command" "flakes" ];
experimental-features = ["nix-command" "flakes"];
};
nixpkgs.config.permittedInsecurePackages = [
"electron-25.9.0"
];
nix.settings.trusted-users = [ "root" user ];
nix.settings.trusted-users = ["root" user];
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
@ -43,27 +44,42 @@ user: { config, pkgs, lib, ... }:
jack.enable = true;
};
# pipewire raop
networking.firewall.allowedUDPPorts = [ 6002 6001 ];
networking.firewall.allowedUDPPorts = [6002 6001];
# network streaming
networking.firewall.allowedTCPPorts = [ 4713 ];
networking.firewall.allowedTCPPorts = [4713];
# kde connect
networking.firewall.allowedTCPPortRanges = [{ from = 1714; to = 1764; }];
networking.firewall.allowedUDPPortRanges = [{ from = 1714; to = 1764; }];
networking.firewall.allowedTCPPortRanges = [
{
from = 1714;
to = 1764;
}
];
networking.firewall.allowedUDPPortRanges = [
{
from = 1714;
to = 1764;
}
];
networking.firewall.interfaces.tailscale0 = {
allowedTCPPortRanges = [{ from = 0; to = 65535; }];
allowedTCPPortRanges = [
{
from = 0;
to = 65535;
}
];
};
services.avahi.enable = true;
security.pam.services.swaylock = { };
security.pam.services.swaylock = {};
security.polkit.enable = true;
systemd.user.services.polkit-gnome-authentication-agent-1 = {
description = "polkit-gnome-authentication-agent-1";
wantedBy = [ "graphical-session.target" ];
wants = [ "graphical-session.target" ];
after = [ "graphical-session.target" ];
wantedBy = ["graphical-session.target"];
wants = ["graphical-session.target"];
after = ["graphical-session.target"];
serviceConfig = {
Type = "simple";
ExecStart = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1";
@ -97,7 +113,7 @@ user: { config, pkgs, lib, ... }:
users.users.${user} = {
isNormalUser = true;
extraGroups = [ "wheel" "video" "networkmanager" ];
extraGroups = ["wheel" "video" "networkmanager"];
initialPassword = "pass";
shell = pkgs.fish;
};
@ -119,30 +135,6 @@ user: { config, pkgs, lib, ... }:
trash-cli
wget
unzip
(neovim.override {
vimAlias = true;
configure = {
packages.myPlugins = with pkgs.vimPlugins; {
start = [ vim-surround vim-commentary vim-nix ];
opt = [ ];
};
customRC = ''
vnoremap * y/\V<C-R>=escape(@",'/\')<CR><CR>
vnoremap <C-R> "ry:%s/<C-R>=escape(@r,'/\')<CR>
vnoremap A :norm A
set number
set rnu
set ignorecase
set smartcase
set mouse=a
set path=.,**
let g:netrw_banner=0
let g:netrw_liststyle=3
set undofile
set undodir=~/.local/share/nvim/undo
'';
};
})
];
services.dbus.enable = true;
@ -184,6 +176,4 @@ user: { config, pkgs, lib, ... }:
services.blueman.enable = true;
services.prometheus.exporters.node.enable = true;
}