diff --git a/build.conf.nix b/build.conf.nix index 8e93723..0d2cd34 100644 --- a/build.conf.nix +++ b/build.conf.nix @@ -1,3 +1,3 @@ { - use-kde = false; + use-kde = true; } diff --git a/configuration.nix b/configuration.nix index 57c274e..1d67c3f 100644 --- a/configuration.nix +++ b/configuration.nix @@ -92,7 +92,6 @@ in # Enable touchpad support (enabled default in most desktopManager). # services.xserver.libinput.enable = true; - # Define a user account. Don't forget to set a password with ‘passwd’. users.mutableUsers = false; users.users.mbk = { isNormalUser = true; @@ -124,7 +123,7 @@ in # services.emacs.package = import /home/mbk/.emacs.d { pkgs = pkgs; }; # services.emacs.defaultEditor = true; - # Allow unfree packages + # Allow unfree packages (sorry) nixpkgs.config.allowUnfree = true; # List packages installed in system profile. To search, run: diff --git a/home.nix b/home.nix index c6f87cd..1dc0225 100644 --- a/home.nix +++ b/home.nix @@ -45,6 +45,26 @@ in programs.neovim = { enable = true; coc.enable = true; + coc.settings = '' + { + "rust-analyzer.checkOnSave.command": "clippy", + "rust-analyzer.checkOnSave.extraArgs": ["-- -W clippy::pedantic"], + "languageserver": { + "ccls": { + "command": "ccls", + "filetypes": ["c", "cpp", "objc", "objcpp"], + "rootPatterns": [".ccls", "compile_commands.json", ".vim/", ".git/", ".hg/"], + "initializationOptions": { + "cache": { + "directory": "/tmp/ccls" + } + } + } + }, + "inlayHint.enable": true, + "zig.zls.path": "/home/mbk/.config/coc/extensions/coc-zls-data/zls_install/zls" + } + ''; defaultEditor = true; plugins = with pkgs.vimPlugins; [ vim-airline