Update Nixvim

This commit is contained in:
albert 2024-08-14 08:26:41 +09:00
parent 780922cfb5
commit 12feb4393b
Signed by: albert
GPG key ID: 3895DD267CA11BA9
6 changed files with 31 additions and 27 deletions

View file

@ -48,27 +48,27 @@ nix develop -c /etc/nixos/git/docs/setup.sh
---
# 📋 To Do List
* [ ] Add audio to rdesktop xrdp config
* [ ] Framework volume buttons don't work on KDE
* [x] Framework volume buttons don't work on KDE
* Intermittent
* Always after reboot
* [ ] KDE not saving HDR / high frame rate settings on Wayland
* [ ] Figure out a way to pass through GPG AND SSH authentications via SSH (so I can use my YubiKey on my server remotely)
* [ ] High I/O write causing issues on framework-server - Figure out where this is coming from. Seems random
* [x] High I/O write causing issues on framework-server - Figure out where this is coming from. Seems random
## home-manager
* [ ] KDE:
* [ ] Add config for tiling <Meta-T>
* [ ] Try Darkman - [Link](https://home-manager-options.extranix.com/?query=services.darkman&release=master)
* [ ] Firefox:
* [ ] Find a way to remove all default search engines (Google, Amazon, Yahoo!, etc)
* [ ] Pre-defined containers with URLs to match? (ie, Google container opens Google stuff automatically)
* [x] KDE:
* [x] Add config for tiling <Meta-T>
* [x] Try Darkman - [Link](https://home-manager-options.extranix.com/?query=services.darkman&release=master)
* [x] Firefox:
* [x] Find a way to remove all default search engines (Google, Amazon, Yahoo!, etc)
* [x] Pre-defined containers with URLs to match? (ie, Google container opens Google stuff automatically)
* [ ] Arkenfox interfering with some audio settings (media.mediasource, for example)
## Homelab General
* [ ] Upgrades:
* [ ] Headscale 0.23 - Need to update the web ui
* [ ] New Features:
* [ ] Add fail2ban to Traefik
* [x] New Features:
* [x] Add fail2ban to Traefik
* Check other open ports
Completed To Do List [here](./docs/complete.md)

View file

@ -45,7 +45,7 @@
# Steam Deck configs for NixOS
jovian.url = "github:Jovian-Experiments/Jovian-NixOS";
};
outputs = { self, nixpkgs, nixpkgs-wayland, home-manager, lanzaboote, nur, sops-nix, nixos-generators, deploy-rs, jovian, ... } @inputs:
outputs = { self, nixpkgs, sops-nix, deploy-rs, ... } @inputs:
let
inherit (self) outputs;
stateVersion = "23.11";

View file

@ -1,4 +1,4 @@
{ lib, ... }: {
{ ... }: {
imports = [
./nixvim/base.nix
./nixvim/cmp.nix
@ -68,13 +68,14 @@
};
};
};
rnix-lsp.enable = lib.mkForce false;
nil-ls.enable = false;
nixd.enable = true;
html.enable = true;
cssls.enable = true;
bashls.enable = false;
tailwindcss.enable = true;
svelte.enable = true;
docker-compose-language-service.enable = true;
marksman.enable = true;
};
onAttach = ''

View file

@ -13,11 +13,11 @@
mkPadding = size: { type = "padding"; val = size; };
mkText = text: { type = "text"; val = text; opts = centeredText; };
mkGroup = val: { inherit val; type = "group"; };
mkGroupItem = desc: shortcut: {
inherit shortcut desc;
command = "";
};
# mkGroup = val: { inherit val; type = "group"; };
# mkGroupItem = desc: shortcut: {
# inherit shortcut desc;
# command = "";
# };
in
[
(mkPadding 6)

View file

@ -4,8 +4,15 @@
./keymaps.nix
inputs.nixvim.homeManagerModules.nixvim
] ++ lib.optional (builtins.isString theme) ../../../../../stylix/themes/${theme}/home-manager/nixvim.nix;
# https://github.com/nix-community/nixvim
home.packages = with pkgs; [
# Linters
yamllint
hadolint
nixfmt-rfc-style
vale
];
# Docs:
# https://nix-community.github.io/nixvim/

View file

@ -36,7 +36,7 @@
desktop ? null,
system ? "x86_64-linux",
theme ? "default",
type ? "default",
# type ? "default",
repo ? "nixpkgs",
unfree ? false,
ip ? null,
@ -57,12 +57,8 @@
restartIfChanged = true;
enableTun = true;
specialArgs = { inherit pkgs-unstable hostname username desktop theme system repo unfree stateVersion ip deployment_type; };
config = { lib, config, pkgs-unstable, hostname, username, desktop, theme, system, repo, stateVersion, ip, deployment_type, ... }: {
nixpkgs.pkgs = import inputs.${repo} {
inherit system;
config.allowUnfree = unfree;
hostPlatform = system;
};
config = { hostname, username, desktop, theme, system, stateVersion, ... }: {
nixpkgs.pkgs = pkgs;
imports = [
../nixos/containers