lots of small changes after using nixos for ~1 month
This commit is contained in:
parent
6e817ea9a8
commit
f383aeda99
4 changed files with 50 additions and 52 deletions
|
|
@ -17,11 +17,7 @@ vim.opt.rtp:prepend(lazypath)
|
|||
|
||||
require("lazy").setup({
|
||||
{ "catppuccin/nvim", name = "catppuccin" },
|
||||
{ "williamboman/mason.nvim", opts = {} },
|
||||
{ "williamboman/mason-lspconfig.nvim", opts = {} },
|
||||
"neovim/nvim-lspconfig",
|
||||
"mfussenegger/nvim-dap",
|
||||
{ "jay-babu/mason-nvim-dap.nvim", opts = {} },
|
||||
{"nvim-treesitter/nvim-treesitter", lazy = false, branch = "main", build = ":TSUpdate", opts = {}},
|
||||
{ "nvim-tree/nvim-tree.lua", opts = {} },
|
||||
"nvim-tree/nvim-web-devicons",
|
||||
|
|
@ -88,12 +84,7 @@ cmp.setup({
|
|||
|
||||
local capabilities = require("cmp_nvim_lsp").default_capabilities()
|
||||
|
||||
require("mason-lspconfig").setup({
|
||||
function (server_name)
|
||||
require("lspconfig")[server_name].setup({
|
||||
capabilities = capabilities
|
||||
})
|
||||
end,
|
||||
})
|
||||
|
||||
|
||||
vim.lsp.enable("rust_analyzer")
|
||||
vim.lsp.enable("pylsp")
|
||||
vim.lsp.enable("biome")
|
||||
vim.lsp.enable("eslint")
|
||||
|
|
|
|||
|
|
@ -27,6 +27,16 @@
|
|||
# Enable networking
|
||||
networking.networkmanager.enable = true;
|
||||
|
||||
# ZeroTier
|
||||
services.zerotierone.enable = true;
|
||||
services.zerotierone.joinNetworks = [ "b3ce837c63" "363c67c55a726a89" ];
|
||||
|
||||
programs.nix-ld.enable = true;
|
||||
programs.nix-ld.libraries = with pkgs; [
|
||||
libGL
|
||||
SDL2
|
||||
];
|
||||
|
||||
# Set your time zone.
|
||||
time.timeZone = "Europe/Athens";
|
||||
|
||||
|
|
@ -80,6 +90,16 @@
|
|||
#media-session.enable = true;
|
||||
};
|
||||
|
||||
hardware.bluetooth = {
|
||||
enable = true;
|
||||
powerOnBoot = true;
|
||||
settings = {
|
||||
General.Experimental = true;
|
||||
General.FastConnectable = true;
|
||||
Policy.AutoEnable = true;
|
||||
};
|
||||
};
|
||||
|
||||
# Enable touchpad support (enabled default in most desktopManager).
|
||||
# services.xserver.libinput.enable = true;
|
||||
|
||||
|
|
@ -88,7 +108,7 @@
|
|||
users.users.xory = {
|
||||
isNormalUser = true;
|
||||
description = "xory";
|
||||
extraGroups = [ "networkmanager" "wheel" ];
|
||||
extraGroups = [ "networkmanager" "wheel" "docker" "libvirt" "dialout" ];
|
||||
packages = with pkgs; [
|
||||
# thunderbird
|
||||
];
|
||||
|
|
@ -116,13 +136,15 @@
|
|||
|
||||
# nVidia drivers.
|
||||
hardware.graphics.enable = true;
|
||||
services.xserver.videoDrivers = [ "nvidia "];
|
||||
services.xserver.videoDrivers = [ "nvidia"];
|
||||
hardware.nvidia = {
|
||||
modesetting.enable = true;
|
||||
powerManagement.enable = false;
|
||||
open = false;
|
||||
nvidiaSettings = true;
|
||||
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
||||
};
|
||||
boot.blacklistedKernelModules = [ "nouveau" ];
|
||||
|
||||
nix.gc = {
|
||||
automatic = true;
|
||||
|
|
@ -130,6 +152,11 @@
|
|||
options = "--delete-older-than 2d";
|
||||
};
|
||||
|
||||
programs.virt-manager.enable = true;
|
||||
virtualisation.libvirtd.enable = true;
|
||||
virtualisation.spiceUSBRedirection.enable = true;
|
||||
virtualisation.docker.enable = true;
|
||||
|
||||
# Some programs need SUID wrappers, can be configured further or are
|
||||
# started in user sessions.
|
||||
# programs.mtr.enable = true;
|
||||
|
|
|
|||
|
|
@ -19,6 +19,23 @@
|
|||
qbittorrent
|
||||
ffmpeg
|
||||
yt-dlp
|
||||
vesktop
|
||||
prismlauncher
|
||||
keepassxc
|
||||
obs-studio
|
||||
mpv
|
||||
kdePackages.kdenlive
|
||||
distrobox
|
||||
screen
|
||||
arduino-ide
|
||||
(lutris.override {
|
||||
extraLibraries = pkgs: [
|
||||
wineWowPackages.stable
|
||||
];
|
||||
})
|
||||
woeusb-ng
|
||||
ntfs3g
|
||||
obsidian
|
||||
];
|
||||
|
||||
home.file = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue