diff --git a/boxes/xps.nix b/boxes/xps.nix index 58c5e4e..ea77a97 100644 --- a/boxes/xps.nix +++ b/boxes/xps.nix @@ -3,10 +3,16 @@ { imports = [ ../common/desktop.nix + ../common/steam.nix ]; environment.systemPackages = with pkgs; [ xbrightness + gnome.cheese + musescore + magic-wormhole + libsForQt5.kdenlive + calcurse ]; services.tlp.enable = true; diff --git a/common/gaming.nix b/common/gaming.nix index 91c2ccd..a8c25bb 100644 --- a/common/gaming.nix +++ b/common/gaming.nix @@ -1,11 +1,5 @@ { config, lib, pkgs, ... }: { - programs.steam = { - enable = true; - remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play - dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server - }; - environment.systemPackages = with pkgs; [ steam-run prismlauncher diff --git a/common/steam.nix b/common/steam.nix new file mode 100644 index 0000000..2fd013f --- /dev/null +++ b/common/steam.nix @@ -0,0 +1,12 @@ +{ config, lib, pkgs, ... }: +{ + programs.steam = { + enable = true; + remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play + dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server + }; + + environment.systemPackages = with pkgs; [ + steam-run + ]; +} diff --git a/config/nvim/init.lua b/config/nvim/init.lua index d15f654..170e241 100644 --- a/config/nvim/init.lua +++ b/config/nvim/init.lua @@ -158,8 +158,24 @@ end local packer_bootstrap = ensure_packer() -return require('packer').startup(function(use) +local packaer = require('packer').startup(function(use) use 'wbthomason/packer.nvim' + use 'nvim-lua/plenary.nvim' + use 'nvim-telescope/telescope.nvim' + use { + 'VonHeikemen/lsp-zero.nvim', + reqiures = { + -- LSP Support + 'neovim/nvim-lspconfig', + 'williamboman/mason.nvim', + 'williamboman/mason-lspconfig.nvim', + + -- Autocompletion + 'hrsh7th/nvim-cmp', + 'hrsh7th/cmp-nvim-lsp', + 'L3MON4D3/LuaSnip', + } + } use 'tpope/vim-surround' use 'tpope/vim-commentary' use 'tpope/vim-fugitive' @@ -171,3 +187,19 @@ return require('packer').startup(function(use) end end); -- }}} + +-- lsp configuration {{{ +local lsp = require('lsp-zero').preset({}) + +lsp.on_attach(function(client, bufnr) + lsp.default_keymaps({buffer = bufnr}) +end) + +lsp.setup() +-- }}} + +nnoremap('ff', function() + require('telescope.builtin').find_files() +end) + +return packer