update nvim
This commit is contained in:
parent
36cccf8207
commit
697b6eb97c
12 changed files with 87 additions and 37 deletions
21
flake.lock
generated
21
flake.lock
generated
|
|
@ -1674,6 +1674,7 @@
|
||||||
"nixpkgs-wayland": "nixpkgs-wayland",
|
"nixpkgs-wayland": "nixpkgs-wayland",
|
||||||
"resume": "resume",
|
"resume": "resume",
|
||||||
"rio-term": "rio-term",
|
"rio-term": "rio-term",
|
||||||
|
"rust-overlay": "rust-overlay_4",
|
||||||
"snowfall-lib": "snowfall-lib",
|
"snowfall-lib": "snowfall-lib",
|
||||||
"solaar": "solaar",
|
"solaar": "solaar",
|
||||||
"spicetify-nix": "spicetify-nix",
|
"spicetify-nix": "spicetify-nix",
|
||||||
|
|
@ -1744,6 +1745,26 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"rust-overlay_4": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1729045942,
|
||||||
|
"narHash": "sha256-HjmK0x5Zm2TK2vFpC7XBM2e3EDNVnAIuEoU2FkeN8xw=",
|
||||||
|
"owner": "oxalica",
|
||||||
|
"repo": "rust-overlay",
|
||||||
|
"rev": "9de3cea452d2401d6f93c06ad985178a4e11d1fc",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "oxalica",
|
||||||
|
"repo": "rust-overlay",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"snowfall-lib": {
|
"snowfall-lib": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-compat": "flake-compat_6",
|
"flake-compat": "flake-compat_6",
|
||||||
|
|
|
||||||
|
|
@ -106,6 +106,11 @@
|
||||||
url = "github:Gerg-L/spicetify-nix";
|
url = "github:Gerg-L/spicetify-nix";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
rust-overlay = {
|
||||||
|
url = "github:oxalica/rust-overlay";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = inputs @ {
|
outputs = inputs @ {
|
||||||
|
|
@ -117,7 +122,7 @@
|
||||||
inherit inputs;
|
inherit inputs;
|
||||||
src = ./.;
|
src = ./.;
|
||||||
|
|
||||||
overlays = [inputs.nixpkgs-wayland.overlay];
|
overlays = [inputs.nixpkgs-wayland.overlay inputs.rust-overlay.overlays.default];
|
||||||
|
|
||||||
snowfall = {
|
snowfall = {
|
||||||
namespace = "custom";
|
namespace = "custom";
|
||||||
|
|
|
||||||
|
|
@ -97,6 +97,8 @@
|
||||||
pkgs.grim
|
pkgs.grim
|
||||||
pkgs.slurp
|
pkgs.slurp
|
||||||
|
|
||||||
|
pkgs.neovide
|
||||||
|
|
||||||
pkgs.xfce.thunar
|
pkgs.xfce.thunar
|
||||||
pkgs.feh
|
pkgs.feh
|
||||||
pkgs.nitch
|
pkgs.nitch
|
||||||
|
|
|
||||||
|
|
@ -59,7 +59,7 @@ in {
|
||||||
Description = "Aylur's Gtk Shell";
|
Description = "Aylur's Gtk Shell";
|
||||||
PartOf = [
|
PartOf = [
|
||||||
"tray.target"
|
"tray.target"
|
||||||
"graphical-session.target"
|
"hyprland-session.target"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
Service = {
|
Service = {
|
||||||
|
|
@ -67,7 +67,7 @@ in {
|
||||||
ExecStart = "${config.programs.ags.package}/bin/ags";
|
ExecStart = "${config.programs.ags.package}/bin/ags";
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
};
|
};
|
||||||
Install.WantedBy = ["graphical-session.target"];
|
Install.WantedBy = ["hyprland-session.target"];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,7 @@
|
||||||
"lazyvim.plugins.extras.lang.docker",
|
"lazyvim.plugins.extras.lang.docker",
|
||||||
"lazyvim.plugins.extras.lang.haskell",
|
"lazyvim.plugins.extras.lang.haskell",
|
||||||
"lazyvim.plugins.extras.lang.java",
|
"lazyvim.plugins.extras.lang.java",
|
||||||
|
"lazyvim.plugins.extras.lang.toml",
|
||||||
"lazyvim.plugins.extras.lang.json",
|
"lazyvim.plugins.extras.lang.json",
|
||||||
"lazyvim.plugins.extras.lang.markdown",
|
"lazyvim.plugins.extras.lang.markdown",
|
||||||
"lazyvim.plugins.extras.lang.nix",
|
"lazyvim.plugins.extras.lang.nix",
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,8 @@
|
||||||
-- Options are automatically loaded before lazy.nvim startup
|
-- 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
|
-- Default options that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/options.lua
|
||||||
-- Add any additional options here
|
-- Add any additional options here
|
||||||
|
|
||||||
|
if vim.g.neovide then
|
||||||
|
-- Put anything you want to happen only in Neovide here
|
||||||
|
vim.o.guifont = "Iosevka,Noto_Color_Emoji:h14:b"
|
||||||
|
end
|
||||||
|
|
|
||||||
|
|
@ -17,11 +17,14 @@ return {
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
"direnv/direnv.vim",
|
||||||
{
|
{
|
||||||
"stevearc/conform.nvim",
|
"stevearc/conform.nvim",
|
||||||
opts = {
|
opts = {
|
||||||
formatters_by_ft = {
|
formatters_by_ft = {
|
||||||
nix = { "alejandra" },
|
nix = { "alejandra" },
|
||||||
|
typescript = { "prettierd" },
|
||||||
|
javascript = { "prettierd" },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
@ -32,22 +35,25 @@ return {
|
||||||
-- optional: provides snippets for the snippet source
|
-- optional: provides snippets for the snippet source
|
||||||
dependencies = "rafamadriz/friendly-snippets",
|
dependencies = "rafamadriz/friendly-snippets",
|
||||||
|
|
||||||
-- use a release tag to download pre-built binaries
|
build = "cargo build --release",
|
||||||
version = "v0.*",
|
|
||||||
-- OR build from source, requires nightly: https://rust-lang.github.io/rustup/concepts/channels.html#working-with-nightly-rust
|
|
||||||
-- build = 'cargo build --release',
|
|
||||||
|
|
||||||
opts = {
|
opts = {
|
||||||
keymap = {
|
keymap = {
|
||||||
show = "<C-S-space>",
|
show = "<C-S-space>",
|
||||||
accept = "<Enter>",
|
accept = "<Enter>",
|
||||||
select_prev = { "<S-Tab>", "<C-j>" },
|
select_prev = { "<S-Tab>", "<C-j>", "<C-p>" },
|
||||||
select_next = { "<C-Tab>", "<C-k>" },
|
select_next = { "<C-Tab>", "<C-k>", "<C-n>" },
|
||||||
|
|
||||||
snippet_forward = "<Tab>",
|
snippet_forward = "<Tab>",
|
||||||
snippet_backward = "<C-S-Tab>",
|
snippet_backward = "<C-S-Tab>",
|
||||||
},
|
},
|
||||||
|
|
||||||
|
windows = {
|
||||||
|
documentation = {
|
||||||
|
auto_show = true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
highlight = {
|
highlight = {
|
||||||
-- sets the fallback highlight groups to nvim-cmp's highlight groups
|
-- sets the fallback highlight groups to nvim-cmp's highlight groups
|
||||||
-- useful for when your theme doesn't support blink.cmp
|
-- useful for when your theme doesn't support blink.cmp
|
||||||
|
|
|
||||||
|
|
@ -52,6 +52,8 @@ in {
|
||||||
# LSP
|
# LSP
|
||||||
lua-language-server
|
lua-language-server
|
||||||
nixd
|
nixd
|
||||||
|
(pkgs.rust-bin.selectLatestNightlyWith
|
||||||
|
(toolchain: toolchain.minimal))
|
||||||
rust-analyzer
|
rust-analyzer
|
||||||
vscode-langservers-extracted
|
vscode-langservers-extracted
|
||||||
nodePackages.vscode-json-languageserver
|
nodePackages.vscode-json-languageserver
|
||||||
|
|
|
||||||
|
|
@ -12,9 +12,9 @@ with lib.custom; let
|
||||||
cfg = config.wms.hyprland;
|
cfg = config.wms.hyprland;
|
||||||
|
|
||||||
mkService = recursiveUpdate {
|
mkService = recursiveUpdate {
|
||||||
Unit.PartOf = ["graphical-session.target"];
|
Unit.PartOf = ["hyprland-session.target"];
|
||||||
Unit.After = ["graphical-session.target"];
|
Unit.After = ["hyprland-session.target"];
|
||||||
Install.WantedBy = ["graphical-session.target"];
|
Install.WantedBy = ["hyprland-session.target"];
|
||||||
};
|
};
|
||||||
|
|
||||||
mod = "SUPER";
|
mod = "SUPER";
|
||||||
|
|
@ -47,21 +47,20 @@ in {
|
||||||
enable = true;
|
enable = true;
|
||||||
xwayland.enable = true;
|
xwayland.enable = true;
|
||||||
|
|
||||||
systemd = {
|
# systemd = {
|
||||||
enable = true;
|
# enable = true;
|
||||||
variables = ["--all"];
|
# enableXdgAutostart = true;
|
||||||
extraCommands = [
|
# variables = ["-all"];
|
||||||
"systemctl --user stop graphical-session.target"
|
# };
|
||||||
"systemctl --user start hyprland-session.target"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
wayland.windowManager.hyprland.settings = with colors; {
|
wayland.windowManager.hyprland.settings = with colors; {
|
||||||
exec-once = [
|
exec-once = [
|
||||||
# "pw-loopback -C \"alsa_input.pci-0000_0d_00.4.analog-stereo\" -P \"Scarlett Solo (3rd Gen.) Headphones / Line 1-2\""
|
# "pw-loopback -C \"alsa_input.pci-0000_0d_00.4.analog-stereo\" -P \"Scarlett Solo (3rd Gen.) Headphones / Line 1-2\""
|
||||||
"sway-audio-idle-inhibit"
|
# "systemctl --user import-environment DISPLAY WAYLAND_DISPLAY XDG_CURRENT_DESKTOP"
|
||||||
"zen-browser"
|
"dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP"
|
||||||
|
"systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP"
|
||||||
|
"zen"
|
||||||
"sleep 6;telegram-desktop"
|
"sleep 6;telegram-desktop"
|
||||||
"sleep 10;thunderbird"
|
"sleep 10;thunderbird"
|
||||||
"vesktop"
|
"vesktop"
|
||||||
|
|
@ -69,6 +68,12 @@ in {
|
||||||
"slack"
|
"slack"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
env = [
|
||||||
|
"XDG_SESSION_TYPE,wayland"
|
||||||
|
"XDG_SESSION_DESKTOP,Hyprland"
|
||||||
|
"XDG_CURRENT_DESKTOP,Hyprland"
|
||||||
|
];
|
||||||
|
|
||||||
bind =
|
bind =
|
||||||
[
|
[
|
||||||
''${mod},RETURN,exec,${pkgs.kitty}/bin/kitty''
|
''${mod},RETURN,exec,${pkgs.kitty}/bin/kitty''
|
||||||
|
|
@ -174,7 +179,7 @@ in {
|
||||||
no_hardware_cursors = true;
|
no_hardware_cursors = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
monitor = ["DP-1,2560x1440@240,0x0,1,bitdepth,10" "HDMI-A-1,disable" "DP-2,disable"];
|
monitor = ["DP-1,2560x1440@240,0x0,1" "HDMI-A-1,disable" "DP-2,disable"];
|
||||||
|
|
||||||
layerrule = [
|
layerrule = [
|
||||||
"blur, ^(gtk-layer-shell)$"
|
"blur, ^(gtk-layer-shell)$"
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,10 @@ in {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
programs.hyprland = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
environment = {
|
environment = {
|
||||||
variables = {
|
variables = {
|
||||||
NIXOS_OZONE_WL = "1";
|
NIXOS_OZONE_WL = "1";
|
||||||
|
|
@ -65,17 +69,15 @@ in {
|
||||||
|
|
||||||
hardware.pulseaudio.support32Bit = true;
|
hardware.pulseaudio.support32Bit = true;
|
||||||
|
|
||||||
xdg.portal = {
|
# xdg.portal = {
|
||||||
enable = true;
|
# enable = true;
|
||||||
config.common.default = "*";
|
# wlr.enable = false;
|
||||||
wlr.enable = true;
|
# config.common.default = "*";
|
||||||
extraPortals = [
|
# extraPortals = [
|
||||||
pkgs.xdg-desktop-portal-gtk
|
# pkgs.xdg-desktop-portal-gtk
|
||||||
pkgs.xdg-desktop-portal-wlr
|
# # pkgs.xdg-desktop-portal-wlr
|
||||||
# inputs.hyprland.packages.${pkgs.system}.xdg-desktop-portal-hyprland
|
# pkgs.xwaylandvideobridge
|
||||||
pkgs.xdg-desktop-portal-hyprland
|
# ];
|
||||||
pkgs.xwaylandvideobridge
|
# };
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -28,8 +28,8 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "Vencord";
|
owner = "Vencord";
|
||||||
repo = "Vesktop";
|
repo = "Vesktop";
|
||||||
rev = "d008f903995c802cb5addd99bd759878c8a3491a";
|
rev = "8993b0d";
|
||||||
hash = "sha256-oQr0k+0dOuJgwg51hr3O/OZoD66XOctQK82bu+MY+zE=";
|
hash = "sha256-R8MT8Z5oHJTAXE2SAcq+yAeVkUEhisLOUaUyMAwFy4w=";
|
||||||
};
|
};
|
||||||
|
|
||||||
# NOTE: This requires pnpm 8.10.0 or newer
|
# NOTE: This requires pnpm 8.10.0 or newer
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,7 @@
|
||||||
|
|
||||||
hardware.audio.enable = true;
|
hardware.audio.enable = true;
|
||||||
hardware.nvidia.enable = true;
|
hardware.nvidia.enable = true;
|
||||||
|
hardware.keyboard.qmk.enable = true;
|
||||||
|
|
||||||
programs.nix-ld.enable = true;
|
programs.nix-ld.enable = true;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue