Compare commits

...
4 Commits
7 changed files with 59 additions and 394 deletions

No files matched your search

Generated
+24 -85
View File
@@ -37,11 +37,11 @@
"sf-pro": "sf-pro"
},
"locked": {
"lastModified": 1787373040,
"narHash": "sha256-mSpL69LSAA/+cQx+v9tC2XC/DD7cUepUmhiMx0/Hw64=",
"lastModified": 1789419105,
"narHash": "sha256-T5A/AqlF4iL908aIZh45e35Mvj8lTJKq8ddS5bk7nd8=",
"owner": "Lyndeno",
"repo": "apple-fonts.nix",
"rev": "69f20e9ba294420e4b6407a827c6b5aea3afcc12",
"rev": "3861e2249cb244bfbc7cfab2303c152cf5f9d9e9",
"type": "github"
},
"original": {
@@ -176,27 +176,6 @@
}
},
"flake-parts_2": {
"inputs": {
"nixpkgs-lib": [
"nixvim",
"nixpkgs"
]
},
"locked": {
"lastModified": 1787559586,
"narHash": "sha256-onL0VLf9vPllmT0H/OlURIU5r5t5WIEl7t4tVNKT0Nw=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "9d0d87172c374f89da73c1cfe6d81ae62feac1f1",
"type": "github"
},
"original": {
"owner": "hercules-ci",
"repo": "flake-parts",
"type": "github"
}
},
"flake-parts_3": {
"inputs": {
"nixpkgs-lib": "nixpkgs-lib"
},
@@ -242,11 +221,11 @@
]
},
"locked": {
"lastModified": 1788458226,
"narHash": "sha256-UZTAlg8iKVEmyEXakzKmukrzFIKrXezYsRy9vajDrGw=",
"lastModified": 1789978077,
"narHash": "sha256-p/e37FfVifxJQJM7OiiVbUXdpj6eXmOJk34TKLKyYe4=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "aa308770461dcf22c333a5e8a31c8bddbde5bee9",
"rev": "a26f7158fbc4aa740fcc7fa79a01e1ed29910bc2",
"type": "github"
},
"original": {
@@ -264,11 +243,11 @@
"treefmt-nix": "treefmt-nix"
},
"locked": {
"lastModified": 1788481344,
"narHash": "sha256-3jEfPEkegrp3ps+VuNT0i+kI4hhfDKoSICoUzZrXDOE=",
"lastModified": 1789987094,
"narHash": "sha256-jzlT1EofmNifqUjpiSJMPbm/GiU17r65WUi44Kfkmdc=",
"owner": "numtide",
"repo": "llm-agents.nix",
"rev": "496d8f2d508dcd4673a1480cd58b3e9bf3400c15",
"rev": "7c0157f864d113d9f0ce324a78496de6da6e7e07",
"type": "github"
},
"original": {
@@ -298,11 +277,11 @@
"nixpkgs": "nixpkgs_3"
},
"locked": {
"lastModified": 1788408011,
"narHash": "sha256-VErLyHIT3U4x64a2G6J6wplB4yDPIpMXlhUpBjUMNEE=",
"lastModified": 1789964597,
"narHash": "sha256-L+tPmy48VrsS/qVrj504pETaGEcVFMs1QpU5kKpBo0U=",
"owner": "nix-community",
"repo": "nix-vscode-extensions",
"rev": "f848614222a7ef023998450a6f6773e10f8adf83",
"rev": "fa4ec37adf8d8c725bfd8915c497ed41c7cb0f70",
"type": "github"
},
"original": {
@@ -344,11 +323,11 @@
},
"nixpkgs_2": {
"locked": {
"lastModified": 1788372231,
"narHash": "sha256-7aqErvrAEz/5OcPA5p3M+tVOqeYc4oJXkNIPXfCqxAw=",
"lastModified": 1789813231,
"narHash": "sha256-dsU+UU4X3ND95E/O6Z33qK5jPxIeB/7akn/+NfAk+nY=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "9387b3fcc0c23c86661636da63faabad4235a0a6",
"rev": "c80073788adf88abfdc443465311f00e7a231600",
"type": "github"
},
"original": {
@@ -376,11 +355,11 @@
},
"nixpkgs_4": {
"locked": {
"lastModified": 1788316716,
"narHash": "sha256-bc7rSpXIdn9QWGNqfWcPZWOhEVF8NoeAZkWq0XWnf/k=",
"lastModified": 1789785513,
"narHash": "sha256-B44WL6h0XoLjJ41bUPJk0X5SDinLCII//6EcBLXKiJ0=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "3ed67ec0a4d3c7ab4ae1f04f8ee8df07bfa506a2",
"rev": "20b1ddd1aa5ace70c9468305030aa4f9ef79671b",
"type": "github"
},
"original": {
@@ -390,28 +369,6 @@
"type": "github"
}
},
"nixvim": {
"inputs": {
"flake-parts": "flake-parts_2",
"nixpkgs": [
"nixpkgs"
],
"systems": "systems_3"
},
"locked": {
"lastModified": 1788190018,
"narHash": "sha256-59BAfH0txPAZrPBF4QJqwvUWppD+ICrcjA1LZAmPnrQ=",
"owner": "nix-community",
"repo": "nixvim",
"rev": "41844750e55f17b1385d5b09ca7ade5f11f49506",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "nixvim",
"type": "github"
}
},
"ny": {
"flake": false,
"locked": {
@@ -456,7 +413,6 @@
"nix-flatpak": "nix-flatpak",
"nix-vscode-extensions": "nix-vscode-extensions",
"nixpkgs": "nixpkgs_4",
"nixvim": "nixvim",
"plasma-manager": "plasma-manager",
"sidra": "sidra",
"vscode-server": "vscode-server"
@@ -489,7 +445,7 @@
"sf-compact": {
"flake": false,
"locked": {
"narHash": "sha256-83JwqfF9O4+gemMQXWHLRg2GNz2jHxsej1F1IkM2dug=",
"narHash": "sha256-KjCzuJOrNxgptsMLGaR8wcrU/bBxCpwtUGzGDcCxJTc=",
"type": "file",
"url": "https://devimages-cdn.apple.com/design/resources/download/SF-Compact.dmg"
},
@@ -537,7 +493,7 @@
"sf-pro": {
"flake": false,
"locked": {
"narHash": "sha256-vINUEMyFmNzZRBOX2aQ4heScWur6RyA/MPmsqlMPIx4=",
"narHash": "sha256-dvGLO786y9ygKRSKDJlhIF6AGmn2NTJ5tBulKinPRxY=",
"type": "file",
"url": "https://devimages-cdn.apple.com/design/resources/download/SF-Pro.dmg"
},
@@ -553,11 +509,11 @@
]
},
"locked": {
"lastModified": 1788475513,
"narHash": "sha256-JRZ3eQpeeExv3mR1icbZAjToe7MPm8XleJML0UsrAHg=",
"lastModified": 1789899222,
"narHash": "sha256-B00sDpFqhTYuVQIesCdR7GeYJFNogz5U1VmJlSEJnmc=",
"owner": "wimpysworld",
"repo": "sidra",
"rev": "257dce10bd6805633d99e5cdae6897d014619dcc",
"rev": "ebba6a85eadd15de9d324503b012f84bf5eaf4ce",
"type": "github"
},
"original": {
@@ -596,23 +552,6 @@
"type": "github"
}
},
"systems_3": {
"flake": false,
"locked": {
"lastModified": 1774449309,
"narHash": "sha256-brhZ8DmuGtzkCYHJg4HEd602amKm89Y9ytsFZ5uWD1w=",
"owner": "nix-systems",
"repo": "default",
"rev": "c29398b59d2048c4ab79345812849c9bd15e9150",
"type": "github"
},
"original": {
"owner": "nix-systems",
"ref": "future-26.11",
"repo": "default",
"type": "github"
}
},
"treefmt-nix": {
"inputs": {
"nixpkgs": [
@@ -636,7 +575,7 @@
},
"vscode-server": {
"inputs": {
"flake-parts": "flake-parts_3"
"flake-parts": "flake-parts_2"
},
"locked": {
"lastModified": 1784312229,
-8
View File
@@ -21,10 +21,6 @@
url = "github:gmodena/nix-flatpak/?ref=latest";
};
vscode-server.url = "github:nix-community/nixos-vscode-server";
nixvim = {
url = "github:nix-community/nixvim";
inputs.nixpkgs.follows = "nixpkgs";
};
llm-agents.url = "github:numtide/llm-agents.nix";
nix-vscode-extensions.url = "github:nix-community/nix-vscode-extensions";
agenix = {
@@ -57,7 +53,6 @@
home-manager.extraSpecialArgs = { inherit inputs; };
home-manager.sharedModules = [
plasma-manager.homeModules.plasma-manager
inputs.nixvim.homeModules.nixvim
];
home-manager.users.emmatherock = { osConfig, ... }: {
imports = [ ./home/emmatherock/core.nix ] ++ osConfig.myHomeProfile.extraPrograms;
@@ -79,9 +74,6 @@
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = { inherit inputs; };
home-manager.sharedModules = [
inputs.nixvim.homeModules.nixvim
];
home-manager.users.emmatherock = { osConfig, ... }: {
imports = [ ./home/emmatherock/core.nix ] ++ osConfig.myHomeProfile.extraPrograms;
};
+1 -2
View File
@@ -8,8 +8,7 @@
programs.home-manager.enable = true;
programs.btop.enable = true;
# Per-project toolchain resolution (nix-shell / flake devShell), used by
# nixvim's LSP servers so they don't need language toolchains installed globally.
# Per-project toolchain resolution through nix-shell / flake devShell.
programs.direnv = {
enable = true;
nix-direnv.enable = true;
-286
View File
@@ -1,286 +0,0 @@
# Declarative Neovim config via nixvim. Goal: a real, lean IDE — not a
# feature-for-feature VSCode clone. Every plugin here earns its place.
{ pkgs, ... }:
{
programs.nixvim = {
enable = true;
defaultEditor = true;
vimAlias = true; # `vim` -> nvim, handy when SSH'd into the VPS/homelab
colorschemes.catppuccin = {
enable = true;
settings.flavour = "mocha";
};
globals.mapleader = " ";
# --- System clipboard over OSC 52, so "+y / "+p work over SSH
# (Termius -> VPS/homelab) without a local clipboard provider.
# Requires Neovim 0.10+ for vim.ui.clipboard.osc52; confirmed
# present (Neovim 0.12.5 on the pinned nixpkgs as of 2026-09).
extraConfigLua = ''
vim.g.clipboard = {
name = "OSC 52",
copy = {
["+"] = require("vim.ui.clipboard.osc52").copy("+"),
["*"] = require("vim.ui.clipboard.osc52").copy("*"),
},
paste = {
["+"] = require("vim.ui.clipboard.osc52").paste("+"),
["*"] = require("vim.ui.clipboard.osc52").paste("*"),
},
}
'';
opts = {
number = true;
relativenumber = true;
shiftwidth = 2;
tabstop = 2;
expandtab = true;
termguicolors = true;
signcolumn = "yes";
scrolloff = 8;
};
# --- File explorer ---
plugins.neo-tree = {
enable = true;
settings.window.width = 30;
};
# --- Fuzzy finder: files, grep, buffers, LSP symbols ---
plugins.telescope = {
enable = true;
extensions.fzf-native.enable = true;
};
# --- Treesitter: syntax highlighting/parsing for your stack ---
plugins.treesitter = {
enable = true;
settings.ensure_installed = [
"nix" "bash" "lua" "markdown" "json" "yaml"
"rust" "go" "gomod" "c" "cpp" "c_sharp" "python"
"javascript" "typescript" "tsx" "vue" "html" "css" "dockerfile"
];
};
# --- LSP: one server per language/toolchain you use ---
plugins.lsp = {
enable = true;
servers = {
nixd.enable = true;
bashls.enable = true;
rust_analyzer = {
enable = true;
installCargo = true;
installRustc = true;
};
gopls.enable = true;
clangd.enable = true; # C / C++
csharp_ls.enable = true;
pyright.enable = true;
ts_ls.enable = true; # JS/TS, React
volar.enable = true; # Vue
html.enable = true;
cssls.enable = true;
tailwindcss.enable = true;
jsonls.enable = true;
dockerls.enable = true;
docker_compose_language_service.enable = true;
};
keymaps.lspBuf = {
"gd" = "definition";
"gr" = "references";
"K" = "hover";
"<leader>rn" = "rename";
"<leader>ca" = "code_action";
};
};
# --- Autocompletion ---
plugins.cmp = {
enable = true;
settings.sources = [
{ name = "nvim_lsp"; }
{ name = "luasnip"; }
{ name = "path"; }
{ name = "buffer"; }
];
settings.snippet.expand = ''
function(args)
require("luasnip").lsp_expand(args.body)
end
'';
settings.mapping = {
"<Tab>" = ''
cmp.mapping(function(fallback)
if cmp.visible() then
cmp.select_next_item()
elseif require("luasnip").expand_or_jumpable() then
require("luasnip").expand_or_jump()
else
fallback()
end
end, { "i", "s" })
'';
"<S-Tab>" = ''
cmp.mapping(function(fallback)
if cmp.visible() then
cmp.select_prev_item()
elseif require("luasnip").jumpable(-1) then
require("luasnip").jump(-1)
else
fallback()
end
end, { "i", "s" })
'';
};
};
plugins.cmp-nvim-lsp.enable = true;
plugins.cmp_luasnip.enable = true;
plugins.cmp-path.enable = true;
plugins.cmp-buffer.enable = true;
# --- Snippets ---
plugins.luasnip = {
enable = true;
fromVscode = [ { paths = "${pkgs.vimPlugins.friendly-snippets}"; } ];
};
# --- Pairs and surrounding text ---
plugins.nvim-autopairs.enable = true;
plugins.nvim-surround.enable = true;
# --- Format on save ---
plugins.conform-nvim = {
enable = true;
settings = {
format_on_save = {
lsp_fallback = true;
timeout_ms = 500;
};
formatters_by_ft = {
rust = [ "rustfmt" ];
go = [ "gofmt" ];
c = [ "clang-format" ];
cpp = [ "clang-format" ];
python = [ "black" ];
javascript = [ "prettier" ];
typescript = [ "prettier" ];
javascriptreact = [ "prettier" ];
typescriptreact = [ "prettier" ];
vue = [ "prettier" ];
nix = [ "nixpkgs-fmt" ];
};
};
};
# --- Git: gutter signs, hunk stage/reset, blame ---
plugins.gitsigns.enable = true;
# --- Git: interactive status/commit/diff/blame ---
plugins.fugitive.enable = true;
# --- Statusline ---
plugins.lualine.enable = true;
# --- Discoverable keybindings while you're still learning ---
plugins.which-key.enable = true;
# --- AI agent: CodeCompanion, curated natively in nixvim ---
# Configured to reuse your existing `claude`/`codex` CLI auth via ACP
# adapters instead of a separate Anthropic Console/OpenAI API key.
#
# Verified against https://codecompanion.olimorris.dev/configuration/adapters-acp
# (CodeCompanion >= v18.0.0, which is what's pinned by nixvim's nixpkgs as of
# 2026-08). Two things changed from an older/assumed layout:
# - the default-adapter key is `interactions.chat.adapter`, not
# `strategies.chat.adapter` (renamed in v18.0.0);
# - the built-in adapter name is `claude_code` (no `_acp` suffix) and
# lives under `adapters.acp.<name>`.
#
# Neither adapter has a true zero-config mode that silently piggybacks on
# an already-logged-in CLI session:
# - codex: extends the built-in `codex` preset. `defaults.auth_method`
# accepts "api-key" | "chat-gpt" (confirmed against the docs above,
# not "chatgpt"/"openai-api-key"/"codex-api-key"). "chat-gpt" reuses
# your ChatGPT/Codex CLI login instead of an OPENAI_API_KEY.
# - claude_code: there's no oauth-personal equivalent. Run
# `claude setup-token` once (ties to your Pro/Max subscription rather
# than a Console API key) and save the result to
# ~/.config/codecompanion/claude-oauth-token (chmod 600, outside the
# nix store). It's read at runtime via the `cmd:` prefix below rather
# than embedded in this file.
plugins.codecompanion = {
enable = true;
settings = {
interactions.chat.adapter = "claude_code"; # switch to "codex" per-chat
interactions.inline.adapter = "claude_code";
adapters.acp = {
opts.show_presets = false;
claude_code.__raw = ''
function()
return require("codecompanion.adapters").extend("claude_code", {
env = {
CLAUDE_CODE_OAUTH_TOKEN = "cmd:cat ~/.config/codecompanion/claude-oauth-token",
},
})
end
'';
codex.__raw = ''
function()
return require("codecompanion.adapters").extend("codex", {
defaults = {
auth_method = "chat-gpt",
},
})
end
'';
};
adapters.http.opts.show_presets = false;
display.chat.window = {
layout = "vertical";
position = "right";
width = 0.4;
};
};
};
# --- Editor-level tooling only: formatters conform.nvim shells out to.
# Language toolchains themselves (cargo, go, dotnet-sdk, nodejs,
# a compiler, a python interpreter) come from your per-project
# nix-shell / flake devShell, not from here — launch nvim from
# inside that shell (`nix develop`, or nix-shell + direnv) so LSP
# servers resolve the right toolchain via PATH.
extraPackages = with pkgs; [
python3Packages.black
prettier
nixpkgs-fmt
file
ripgrep
sqlite
];
keymaps = [
{ mode = "n"; key = "<leader>e"; action = "<cmd>Neotree toggle<CR>"; }
{ mode = "n"; key = "<leader>ff"; action = "<cmd>Telescope find_files<CR>"; }
{ mode = "n"; key = "<leader>fg"; action = "<cmd>Telescope live_grep<CR>"; }
{ mode = "n"; key = "<leader>fb"; action = "<cmd>Telescope buffers<CR>"; }
# CodeCompanion
{ mode = [ "n" "v" ]; key = "<leader>ac"; action = "<cmd>CodeCompanionChat Toggle<CR>"; }
{ mode = "v"; key = "<leader>aa"; action = "<cmd>CodeCompanionChat Add<CR>"; }
{ mode = "n"; key = "<leader>ai"; action = "<cmd>CodeCompanion<CR>"; } # inline assistant
# Fugitive
{ mode = "n"; key = "<leader>gs"; action = "<cmd>Git<CR>"; } # status
{ mode = "n"; key = "<leader>gc"; action = "<cmd>Git commit<CR>"; } # interactive commit
{ mode = "n"; key = "<leader>gp"; action = "<cmd>Git push<CR>"; }
{ mode = "n"; key = "<leader>gl"; action = "<cmd>Git pull<CR>"; }
{ mode = "n"; key = "<leader>gd"; action = "<cmd>Gvdiffsplit<CR>"; } # diff current file
];
};
}
+31 -11
View File
@@ -28,7 +28,6 @@
../../home/emmatherock/deskflow.nix
../../home/emmatherock/gaming.nix
../../home/emmatherock/media.nix
../../home/emmatherock/neovim.nix
../../home/emmatherock/packages.nix
../../home/emmatherock/plasma.nix
../../home/emmatherock/vscode.nix
@@ -38,7 +37,7 @@
hostName = "miku-homelab";
useNetworkManager = true;
staticIp = {
interface = "enp6s0";
interface = "enp9s0";
address = "10.1.1.21";
prefixLength = 24;
gateway = "10.1.1.1";
@@ -112,7 +111,35 @@
plymouth.enable = true;
initrd.kernelModules = [ "amdgpu" ];
kernelPackages = pkgs.linuxPackages_latest;
kernelParams = [ "quiet" "splash" "boot.shell_on_fail" "loglevel=3" "iommu=pt" ];
kernelParams = [
"quiet"
"splash"
"boot.shell_on_fail"
"loglevel=3"
"iommu=pt"
"zswap.enabled=1"
"zswap.compressor=zstd"
"zswap.max_pool_percent=20"
"zswap.zpool=zsmalloc"
];
};
swapDevices = [
{
device = "/dev/disk/by-label/optane-swap-1";
priority = 50;
}
{
device = "/dev/disk/by-label/optane-swap-2";
priority = 50;
}
];
zramSwap = {
enable = true;
algorithm = "zstd";
memoryPercent = 50;
priority = 100;
};
time.timeZone = "America/Argentina/Buenos_Aires";
@@ -148,7 +175,7 @@
wantedBy = [ "multi-user.target" ];
serviceConfig = {
Type = "oneshot";
ExecStart = "${pkgs.ethtool}/bin/ethtool -K enp6s0 rx-udp-gro-forwarding on rx-gro-list on";
ExecStart = "${pkgs.ethtool}/bin/ethtool -K enp9s0 rx-udp-gro-forwarding on rx-gro-list on";
RemainAfterExit = true;
};
};
@@ -158,12 +185,5 @@
experimental-features = [ "nix-command" "flakes" ];
};
zramSwap = {
enable = true;
algorithm = "zstd";
memoryPercent = 50;
priority = 100;
};
system.stateVersion = "25.11";
}
-1
View File
@@ -13,7 +13,6 @@
myHomeProfile.extraPrograms = [
../../home/emmatherock/agents.nix
../../home/emmatherock/neovim.nix
];
myNetworking = {
+3 -1
View File
@@ -9,5 +9,7 @@
options = "--delete-older-than 14d";
};
services.journald.extraConfig = "SystemMaxUse=500M";
services.journald.settings.Journal = {
SystemMaxUse = "500M";
};
}