Disable avante; fix treesitter config
This commit is contained in:
49
flake.lock
generated
Executable file
49
flake.lock
generated
Executable file
@@ -0,0 +1,49 @@
|
||||
{
|
||||
"nodes": {
|
||||
"home-manager": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1767619900,
|
||||
"narHash": "sha256-KpoCBPvwHz3gAQtIUkohE2InRBFK3r0/FM6z5SPWfvM=",
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"rev": "6bd04da47cfb48dfd15eabf08364b78ad894f5b2",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nix-community",
|
||||
"ref": "release-25.11",
|
||||
"repo": "home-manager",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1767480499,
|
||||
"narHash": "sha256-8IQQUorUGiSmFaPnLSo2+T+rjHtiNWc+OAzeHck7N48=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "30a3c519afcf3f99e2c6df3b359aec5692054d92",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOS",
|
||||
"ref": "nixos-25.11",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"home-manager": "home-manager",
|
||||
"nixpkgs": "nixpkgs"
|
||||
}
|
||||
}
|
||||
},
|
||||
"root": "root",
|
||||
"version": 7
|
||||
}
|
||||
28
home/sam/home.nix
Normal file → Executable file
28
home/sam/home.nix
Normal file → Executable file
@@ -34,26 +34,40 @@
|
||||
enableZshIntegration = true;
|
||||
};
|
||||
|
||||
|
||||
programs.zellij = {
|
||||
enable = true;
|
||||
enableZshIntegration = true;
|
||||
};
|
||||
|
||||
programs.atuin = {
|
||||
enable = true;
|
||||
enableZshIntegration = true;
|
||||
};
|
||||
|
||||
programs.kitty.enable = true;
|
||||
|
||||
programs.git.enable = true;
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userName = "sam";
|
||||
userEmail = "samuelrolfe@gmail.com";
|
||||
};
|
||||
programs.gh.enable = true;
|
||||
|
||||
# Neovim Option 1: keep your config + lazy.nvim (downloads plugins),
|
||||
# but Nix provides all the runtime deps (node/python/rg/fd/etc).
|
||||
programs.neovim = {
|
||||
|
||||
programs.neovim = {
|
||||
enable = true;
|
||||
viAlias = true;
|
||||
vimAlias = true;
|
||||
withNodeJs = true;
|
||||
withPython3 = true;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
# Link the config, recursive ensures it is readable
|
||||
xdg.configFile."nvim/init.lua".source = ./nvim/init.lua;
|
||||
xdg.configFile."nvim/lua".source = ./nvim/lua;
|
||||
home.packages = with pkgs; [
|
||||
nodejs
|
||||
python3
|
||||
@@ -67,6 +81,4 @@
|
||||
# Hyprland minimal config so it is usable immediately
|
||||
xdg.configFile."hypr/hyprland.conf".source = ./../sam/hypr/hyprland.conf;
|
||||
|
||||
# Neovim config stored in this repo
|
||||
xdg.configFile."nvim".source = ./nvim;
|
||||
}
|
||||
|
||||
0
home/sam/hypr/hyprland.conf
Normal file → Executable file
0
home/sam/hypr/hyprland.conf
Normal file → Executable file
0
home/sam/nvim/init.lua
Normal file → Executable file
0
home/sam/nvim/init.lua
Normal file → Executable file
0
home/sam/nvim/lazy-lock.json
Normal file → Executable file
0
home/sam/nvim/lazy-lock.json
Normal file → Executable file
0
home/sam/nvim/lua/current-theme.lua
Normal file → Executable file
0
home/sam/nvim/lua/current-theme.lua
Normal file → Executable file
16
home/sam/nvim/lua/sam/lazy.lua
Normal file → Executable file
16
home/sam/nvim/lua/sam/lazy.lua
Normal file → Executable file
@@ -1,17 +1,21 @@
|
||||
-- ~/.config/nvim/lua/sam/lazy.lua
|
||||
|
||||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||
if not vim.loop.fs_stat(lazypath) then
|
||||
if not vim.uv.fs_stat(lazypath) then
|
||||
vim.fn.system({
|
||||
"git",
|
||||
"clone",
|
||||
"--filter=blob:none",
|
||||
"https://github.com/folke/lazy.nvim.git",
|
||||
"--branch=stable", -- latest stable release
|
||||
"--branch=stable",
|
||||
lazypath,
|
||||
})
|
||||
end
|
||||
|
||||
vim.opt.rtp:prepend(lazypath)
|
||||
|
||||
-- Tell lazy to load our plugin specs from the "plugins" directory
|
||||
require("lazy").setup("sam.plugins", {})
|
||||
require("lazy").setup("sam.plugins", {
|
||||
-- Force plugin installation on new machines:
|
||||
install = { missing = true },
|
||||
|
||||
-- Put lockfile somewhere writable:
|
||||
lockfile = vim.fn.stdpath("data") .. "/lazy-lock.json",
|
||||
})
|
||||
|
||||
0
home/sam/nvim/lua/sam/options.lua
Normal file → Executable file
0
home/sam/nvim/lua/sam/options.lua
Normal file → Executable file
0
home/sam/nvim/lua/sam/plugins/autopairs.lua
Normal file → Executable file
0
home/sam/nvim/lua/sam/plugins/autopairs.lua
Normal file → Executable file
0
home/sam/nvim/lua/sam/plugins/avante.lua → home/sam/nvim/lua/sam/plugins/avante.lua.disabled
Normal file → Executable file
0
home/sam/nvim/lua/sam/plugins/avante.lua → home/sam/nvim/lua/sam/plugins/avante.lua.disabled
Normal file → Executable file
0
home/sam/nvim/lua/sam/plugins/cmp.lua
Normal file → Executable file
0
home/sam/nvim/lua/sam/plugins/cmp.lua
Normal file → Executable file
0
home/sam/nvim/lua/sam/plugins/colorscheme.lua
Normal file → Executable file
0
home/sam/nvim/lua/sam/plugins/colorscheme.lua
Normal file → Executable file
0
home/sam/nvim/lua/sam/plugins/comment.lua
Normal file → Executable file
0
home/sam/nvim/lua/sam/plugins/comment.lua
Normal file → Executable file
0
home/sam/nvim/lua/sam/plugins/dap.lua
Normal file → Executable file
0
home/sam/nvim/lua/sam/plugins/dap.lua
Normal file → Executable file
0
home/sam/nvim/lua/sam/plugins/filetree.lua
Normal file → Executable file
0
home/sam/nvim/lua/sam/plugins/filetree.lua
Normal file → Executable file
0
home/sam/nvim/lua/sam/plugins/formatter.lua
Normal file → Executable file
0
home/sam/nvim/lua/sam/plugins/formatter.lua
Normal file → Executable file
0
home/sam/nvim/lua/sam/plugins/gitsigns.lua
Normal file → Executable file
0
home/sam/nvim/lua/sam/plugins/gitsigns.lua
Normal file → Executable file
0
home/sam/nvim/lua/sam/plugins/icons.lua
Normal file → Executable file
0
home/sam/nvim/lua/sam/plugins/icons.lua
Normal file → Executable file
0
home/sam/nvim/lua/sam/plugins/lint.lua
Normal file → Executable file
0
home/sam/nvim/lua/sam/plugins/lint.lua
Normal file → Executable file
0
home/sam/nvim/lua/sam/plugins/lsp.lua
Normal file → Executable file
0
home/sam/nvim/lua/sam/plugins/lsp.lua
Normal file → Executable file
0
home/sam/nvim/lua/sam/plugins/lualine.lua
Normal file → Executable file
0
home/sam/nvim/lua/sam/plugins/lualine.lua
Normal file → Executable file
0
home/sam/nvim/lua/sam/plugins/markdown.lua
Normal file → Executable file
0
home/sam/nvim/lua/sam/plugins/markdown.lua
Normal file → Executable file
0
home/sam/nvim/lua/sam/plugins/mason-tools.lua
Normal file → Executable file
0
home/sam/nvim/lua/sam/plugins/mason-tools.lua
Normal file → Executable file
0
home/sam/nvim/lua/sam/plugins/telescope-addons.lua
Normal file → Executable file
0
home/sam/nvim/lua/sam/plugins/telescope-addons.lua
Normal file → Executable file
0
home/sam/nvim/lua/sam/plugins/telescope.lua
Normal file → Executable file
0
home/sam/nvim/lua/sam/plugins/telescope.lua
Normal file → Executable file
0
home/sam/nvim/lua/sam/plugins/theme-catppuccin.lua
Normal file → Executable file
0
home/sam/nvim/lua/sam/plugins/theme-catppuccin.lua
Normal file → Executable file
0
home/sam/nvim/lua/sam/plugins/theme-dracula.lua
Normal file → Executable file
0
home/sam/nvim/lua/sam/plugins/theme-dracula.lua
Normal file → Executable file
0
home/sam/nvim/lua/sam/plugins/theme-everforest.lua
Normal file → Executable file
0
home/sam/nvim/lua/sam/plugins/theme-everforest.lua
Normal file → Executable file
0
home/sam/nvim/lua/sam/plugins/theme-gruvbox.lua
Normal file → Executable file
0
home/sam/nvim/lua/sam/plugins/theme-gruvbox.lua
Normal file → Executable file
0
home/sam/nvim/lua/sam/plugins/theme-kanagawa.lua
Normal file → Executable file
0
home/sam/nvim/lua/sam/plugins/theme-kanagawa.lua
Normal file → Executable file
0
home/sam/nvim/lua/sam/plugins/theme-onedark.lua
Normal file → Executable file
0
home/sam/nvim/lua/sam/plugins/theme-onedark.lua
Normal file → Executable file
0
home/sam/nvim/lua/sam/plugins/theme-tokyonight.lua
Normal file → Executable file
0
home/sam/nvim/lua/sam/plugins/theme-tokyonight.lua
Normal file → Executable file
29
home/sam/nvim/lua/sam/plugins/treesitter.lua
Normal file → Executable file
29
home/sam/nvim/lua/sam/plugins/treesitter.lua
Normal file → Executable file
@@ -1,11 +1,21 @@
|
||||
-- ~/.config/nvim/lua/sam/plugins/treesitter.lua
|
||||
|
||||
return {
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
build = ":TSUpdate", -- Installs and updates parsers
|
||||
build = ":TSUpdate",
|
||||
config = function()
|
||||
require("nvim-treesitter.configs").setup({
|
||||
-- A list of parser names, or "all"
|
||||
-- treesitter renamed configs -> config in newer versions
|
||||
local ok, ts = pcall(require, "nvim-treesitter.config")
|
||||
if not ok then
|
||||
ok, ts = pcall(require, "nvim-treesitter.configs")
|
||||
end
|
||||
if not ok then
|
||||
vim.notify(
|
||||
"nvim-treesitter: config module not found",
|
||||
vim.log.levels.ERROR
|
||||
)
|
||||
return
|
||||
end
|
||||
|
||||
ts.setup({
|
||||
ensure_installed = {
|
||||
"c",
|
||||
"cpp",
|
||||
@@ -21,16 +31,9 @@ return {
|
||||
"json",
|
||||
"php",
|
||||
},
|
||||
|
||||
-- Install parsers synchronously (only applied on startup)
|
||||
sync_install = false,
|
||||
|
||||
-- Automatically install missing parsers when entering buffer
|
||||
auto_install = true,
|
||||
|
||||
highlight = {
|
||||
enable = true,
|
||||
},
|
||||
highlight = { enable = true },
|
||||
})
|
||||
end,
|
||||
}
|
||||
|
||||
0
home/sam/nvim/lua/sam/plugins/vimtex.lua
Normal file → Executable file
0
home/sam/nvim/lua/sam/plugins/vimtex.lua
Normal file → Executable file
0
home/sam/nvim/lua/sam/plugins/which-key.lua
Normal file → Executable file
0
home/sam/nvim/lua/sam/plugins/which-key.lua
Normal file → Executable file
29
hosts/aspire-laptop/configuration.nix
Normal file → Executable file
29
hosts/aspire-laptop/configuration.nix
Normal file → Executable file
@@ -1,10 +1,13 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
let
|
||||
tex = pkgs.texlive.combine {
|
||||
inherit (pkgs.texlive) scheme-small latexmk;
|
||||
};
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
];
|
||||
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
nix.settings.experimental-features = [
|
||||
@@ -14,6 +17,8 @@
|
||||
|
||||
networking.hostName = "aspire-laptop";
|
||||
networking.networkmanager.enable = true;
|
||||
networking.nameservers = [ "1.1.1.1" "8.8.8.8" ];
|
||||
|
||||
|
||||
time.timeZone = "Australia/Melbourne";
|
||||
i18n.defaultLocale = "en_AU.UTF-8";
|
||||
@@ -34,12 +39,23 @@
|
||||
xdg.portal.extraPortals = with pkgs; [
|
||||
xdg-desktop-portal-hyprland
|
||||
xdg-desktop-portal-gtk
|
||||
xdg-desktop-portal-kde
|
||||
pkgs.kdePackages.xdg-desktop-portal-kde
|
||||
];
|
||||
|
||||
security.polkit.enable = true;
|
||||
programs.dconf.enable = true;
|
||||
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
|
||||
settings = {
|
||||
PasswordAuthentication = true;
|
||||
KbdInteractiveAuthentication = false;
|
||||
PermitRootLogin = "no";
|
||||
};
|
||||
};
|
||||
|
||||
services.libinput.enable = true;
|
||||
|
||||
services.pipewire.enable = true;
|
||||
@@ -116,16 +132,15 @@
|
||||
|
||||
# Markdown / LaTeX (small)
|
||||
pandoc
|
||||
texlive.combined.scheme-small
|
||||
latexmk
|
||||
tex
|
||||
zathura
|
||||
zathura-pdf-mupdf
|
||||
zathuraPkgs.zathura_pdf_mupdf
|
||||
];
|
||||
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
boot.loader.systemd-boot.configurationLimit = 20;
|
||||
|
||||
boot.loader.efi.efiSysMountPoint="/boot/efi";
|
||||
networking.firewall.enable = true;
|
||||
|
||||
system.stateVersion = "25.11";
|
||||
|
||||
Reference in New Issue
Block a user