install solaar for use on yukari
This commit is contained in:
parent
183db10312
commit
75a38fab65
17 changed files with 21 additions and 302 deletions
|
@ -1,15 +0,0 @@
|
|||
{
|
||||
"neodev": {
|
||||
"library": {
|
||||
"enabled": true,
|
||||
"plugins": true
|
||||
}
|
||||
},
|
||||
"neoconf": {
|
||||
"plugins": {
|
||||
"lua_ls": {
|
||||
"enabled": true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1 +0,0 @@
|
|||
require("config.lazy")
|
|
@ -1,3 +0,0 @@
|
|||
-- Autocmds are automatically loaded on the VeryLazy event
|
||||
-- Default autocmds that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/autocmds.lua
|
||||
-- Add any additional autocmds here
|
|
@ -1,3 +0,0 @@
|
|||
-- Keymaps are automatically loaded on the VeryLazy event
|
||||
-- Default keymaps that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/keymaps.lua
|
||||
-- Add any additional keymaps here
|
|
@ -1,45 +0,0 @@
|
|||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||
if not vim.loop.fs_stat(lazypath) then
|
||||
-- bootstrap lazy.nvim
|
||||
-- stylua: ignore
|
||||
vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", "--branch=stable", lazypath })
|
||||
end
|
||||
vim.opt.rtp:prepend(vim.env.LAZY or lazypath)
|
||||
|
||||
require("lazy").setup({
|
||||
spec = {
|
||||
-- add LazyVim and import its plugins
|
||||
{ "LazyVim/LazyVim", import = "lazyvim.plugins" },
|
||||
-- import any extras modules here
|
||||
{ import = "lazyvim.plugins.extras.editor.aerial" },
|
||||
{ import = "lazyvim.plugins.extras.editor.leap" },
|
||||
{ import = "lazyvim.plugins.extras.lang.typescript" },
|
||||
{ import = "lazyvim.plugins.extras.lang.svelte" },
|
||||
{ import = "lazyvim.plugins.extras.lang.rust" },
|
||||
{ import = "lazyvim.plugins.extras.lang.haskell" },
|
||||
{ import = "lazyvim.plugins.extras.formatting.prettier" },
|
||||
-- import/override with your plugins
|
||||
{ import = "plugins" },
|
||||
},
|
||||
defaults = {
|
||||
lazy = false,
|
||||
version = false, -- always use the latest git commit
|
||||
},
|
||||
install = { colorscheme = { "tokyonight", "habamax" } },
|
||||
checker = { enabled = true }, -- automatically check for plugin updates
|
||||
performance = {
|
||||
rtp = {
|
||||
-- disable some rtp plugins
|
||||
disabled_plugins = {
|
||||
"gzip",
|
||||
-- "matchit",
|
||||
-- "matchparen",
|
||||
-- "netrwPlugin",
|
||||
"tarPlugin",
|
||||
"tohtml",
|
||||
"tutor",
|
||||
"zipPlugin",
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
|
@ -1,22 +0,0 @@
|
|||
-- Options are automatically loaded before lazy.nvim startup
|
||||
-- Default options that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/options.lua
|
||||
-- Add any additional options here
|
||||
|
||||
-- Disable relative line numbers
|
||||
vim.o.relativenumber = false
|
||||
|
||||
-- Change the default font
|
||||
-- Some of my machines have HDR displayed, meaning they need a smaller font size
|
||||
if vim.fn.hostname() == "enoko" then
|
||||
vim.o.guifont = "JetBrainsMono NF:h12"
|
||||
else
|
||||
vim.o.guifont = "JetBrainsMono NF:h14"
|
||||
end
|
||||
|
||||
if vim.g.neovide then
|
||||
-- Reduce neovide scroll animation length
|
||||
vim.g.neovide_scroll_animation_length = 0.1
|
||||
end
|
||||
|
||||
-- Prepend mise shims to path
|
||||
vim.env.PATH = vim.env.HOME .. ".local/share/mise/shims:" .. vim.env.PATH
|
|
@ -1,9 +0,0 @@
|
|||
return {
|
||||
"hrsh7th/nvim-cmp",
|
||||
opts = function(_, opts)
|
||||
opts.experimental = {
|
||||
-- Disable ghost text because it pisses me off.
|
||||
ghost_text = false,
|
||||
}
|
||||
end,
|
||||
}
|
|
@ -1,9 +0,0 @@
|
|||
return {
|
||||
{ "catppuccin/nvim" },
|
||||
{
|
||||
"LazyVim/LazyVim",
|
||||
opts = {
|
||||
colorscheme = "catppuccin-mocha",
|
||||
},
|
||||
},
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
-- Set up elixir-tools.nvim for better Elixir support
|
||||
|
||||
return {
|
||||
{
|
||||
"elixir-tools/elixir-tools.nvim",
|
||||
event = { "BufReadPre", "BufNewFile" },
|
||||
config = function()
|
||||
local elixir = require("elixir")
|
||||
|
||||
elixir.setup({
|
||||
elixirls = {
|
||||
enable = false, -- handle elixirls through mason
|
||||
},
|
||||
})
|
||||
end,
|
||||
},
|
||||
}
|
|
@ -1,8 +0,0 @@
|
|||
-- Override plugin keymaps
|
||||
|
||||
return {
|
||||
"nvim-telescope/telescope.nvim",
|
||||
keys = {
|
||||
{ "<leader><space>", "<cmd>Telescope find_files<cr>", desc = "Find files" },
|
||||
},
|
||||
}
|
|
@ -1,30 +0,0 @@
|
|||
return {
|
||||
{
|
||||
"neovim/nvim-lspconfig",
|
||||
opts = {
|
||||
servers = {
|
||||
nushell = {},
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
dependencies = {
|
||||
{ "nushell/tree-sitter-nu" },
|
||||
},
|
||||
opts = function(_, opts)
|
||||
require("nvim-treesitter.parsers").get_parser_configs().nu = {
|
||||
install_info = {
|
||||
url = "https://github.com/nushell/tree-sitter-nu",
|
||||
files = { "src/parser.c" },
|
||||
branch = "main",
|
||||
},
|
||||
filetype = "nu",
|
||||
}
|
||||
|
||||
if type(opts.ensure_installed) == "table" then
|
||||
vim.list_extend(opts.ensure_installed, { "nu" })
|
||||
end
|
||||
end,
|
||||
},
|
||||
}
|
|
@ -1,42 +0,0 @@
|
|||
-- Better project/cd support
|
||||
|
||||
return {
|
||||
{
|
||||
"gnikdroy/projections.nvim",
|
||||
config = function()
|
||||
require("projections").setup({
|
||||
workspaces = {
|
||||
"~/Projects/Personal",
|
||||
},
|
||||
})
|
||||
require("telescope").load_extension("projections")
|
||||
|
||||
-- Load project if started in a project directory
|
||||
local switcher = require("projections.switcher")
|
||||
vim.api.nvim_create_autocmd({ "VimEnter" }, {
|
||||
callback = function()
|
||||
if vim.fn.argc() == 0 then
|
||||
switcher.switch(vim.loop.cwd())
|
||||
end
|
||||
end,
|
||||
})
|
||||
end,
|
||||
keys = {
|
||||
{ "<leader>fp", "<cmd>Telescope projections<CR>", desc = "Search projects" },
|
||||
},
|
||||
},
|
||||
{
|
||||
"nvimdev/dashboard-nvim",
|
||||
opts = function(_, opts)
|
||||
local button = {
|
||||
action = "Telescope projections",
|
||||
desc = "Projects",
|
||||
icon = "🕮 ",
|
||||
key = "p",
|
||||
}
|
||||
|
||||
button.key_format = " %s"
|
||||
table.insert(opts.config.center, 6, button)
|
||||
end,
|
||||
},
|
||||
}
|
|
@ -1,32 +0,0 @@
|
|||
return {
|
||||
{
|
||||
"aserowy/tmux.nvim",
|
||||
event = "VeryLazy",
|
||||
config = function()
|
||||
local tmux = require("tmux")
|
||||
tmux.setup({
|
||||
copy_sync = {
|
||||
enable = false,
|
||||
},
|
||||
navigation = {
|
||||
cycle_navigation = false,
|
||||
enable_default_keybindings = false,
|
||||
persist_zoom = true,
|
||||
},
|
||||
resize = {
|
||||
enable_default_keybindings = false,
|
||||
},
|
||||
})
|
||||
end,
|
||||
keys = {
|
||||
{ "<c-h>", mode = { "n", "t", "i" }, '<cmd>lua require("tmux").move_left()<cr>' },
|
||||
{ "<c-l>", mode = { "n", "t", "i" }, '<cmd>lua require("tmux").move_right()<cr>' },
|
||||
{ "<c-j>", mode = { "n", "t", "i" }, '<cmd>lua require("tmux").move_bottom()<cr>' },
|
||||
{ "<c-k>", mode = { "n", "t", "i" }, '<cmd>lua require("tmux").move_top()<cr>' },
|
||||
{ "<c-left>", mode = { "n", "t", "i" }, '<cmd>lua require("tmux").resize_left()<cr>' },
|
||||
{ "<c-down>", mode = { "n", "t", "i" }, '<cmd>lua require("tmux").resize_bottom()<cr>' },
|
||||
{ "<c-up>", mode = { "n", "t", "i" }, '<cmd>lua require("tmux").resize_top()<cr>' },
|
||||
{ "<c-right>", mode = { "n", "t", "i" }, '<cmd>lua require("tmux").resize_right()<cr>' },
|
||||
},
|
||||
},
|
||||
}
|
|
@ -1,3 +0,0 @@
|
|||
indent_type = "Spaces"
|
||||
indent_width = 2
|
||||
column_width = 120
|
|
@ -1,24 +0,0 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
programs.neovim = {
|
||||
enable = true;
|
||||
extraPackages = with pkgs; [
|
||||
# LazyVim
|
||||
lua-language-server
|
||||
stylua
|
||||
# Telescope
|
||||
ripgrep
|
||||
];
|
||||
|
||||
plugins = with pkgs.vimPlugins; [
|
||||
lazy-nvim
|
||||
];
|
||||
};
|
||||
|
||||
home.sessionVariables.EDITOR = "nvim";
|
||||
|
||||
xdg.configFile."nvim/init.lua".source = ../../../dotfiles/nvim/init.lua;
|
||||
xdg.configFile."nvim/stylua.toml".source = ../../../dotfiles/nvim/stylua.toml;
|
||||
xdg.configFile."nvim/.neoconf.json".source = ../../../dotfiles/nvim/.neoconf.json;
|
||||
xdg.configFile."nvim/lua".source = ../../../dotfiles/nvim/lua;
|
||||
}
|
|
@ -1,6 +1,5 @@
|
|||
# yukari my main desktop workstation, running nixos
|
||||
{ ... }:
|
||||
{
|
||||
{ pkgs, ... }: {
|
||||
imports = [
|
||||
./global.nix
|
||||
./global.linux.nix
|
||||
|
@ -8,10 +7,13 @@
|
|||
./features/desktop/games
|
||||
];
|
||||
|
||||
# Install Solaar, a management application for Logitech dongle devices
|
||||
home.packages = with pkgs; [ solaar ];
|
||||
|
||||
# ---------- ------
|
||||
# | HDMI-A-5 | | DP-5 |
|
||||
# ---------- ------
|
||||
config.monitors = [
|
||||
monitors = [
|
||||
{
|
||||
name = "HDMI-A-1";
|
||||
width = 3440;
|
||||
|
|
|
@ -1,11 +1,4 @@
|
|||
{
|
||||
inputs,
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
{ inputs, lib, config, pkgs, ... }: {
|
||||
imports = [
|
||||
../common
|
||||
./hardware-configuration.nix
|
||||
|
@ -14,17 +7,10 @@
|
|||
../desktop/plasma.nix
|
||||
];
|
||||
|
||||
nixpkgs = {
|
||||
config = {
|
||||
allowUnfree = true;
|
||||
};
|
||||
};
|
||||
nixpkgs = { config = { allowUnfree = true; }; };
|
||||
|
||||
nix =
|
||||
let
|
||||
flakeInputs = lib.filterAttrs (_: lib.isType "flake") inputs;
|
||||
in
|
||||
{
|
||||
nix = let flakeInputs = lib.filterAttrs (_: lib.isType "flake") inputs;
|
||||
in {
|
||||
settings = {
|
||||
flake-registry = "";
|
||||
nix-path = config.nix.nixPath;
|
||||
|
@ -39,6 +25,7 @@
|
|||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
boot.initrd.kernelModules = [ "amdgpu" ];
|
||||
hardware.graphics.enable = true;
|
||||
hardware.logitech.wireless.enable = true;
|
||||
|
||||
networking.hostName = "yukari";
|
||||
|
||||
|
@ -66,17 +53,12 @@
|
|||
lu = {
|
||||
shell = pkgs.fish;
|
||||
isNormalUser = true;
|
||||
extraGroups = [
|
||||
"wheel"
|
||||
"storage"
|
||||
];
|
||||
extraGroups = [ "wheel" "storage" ];
|
||||
};
|
||||
};
|
||||
|
||||
# network stuff
|
||||
networking.networkmanager = {
|
||||
enable = true;
|
||||
};
|
||||
networking.networkmanager = { enable = true; };
|
||||
|
||||
# fish shell
|
||||
programs.fish = {
|
||||
|
@ -89,9 +71,7 @@
|
|||
};
|
||||
|
||||
# hyprland stuff
|
||||
programs.hyprland = {
|
||||
enable = true;
|
||||
};
|
||||
programs.hyprland = { enable = true; };
|
||||
|
||||
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
|
||||
system.stateVersion = "23.11";
|
||||
|
|
Loading…
Add table
Reference in a new issue