Compare commits

...

2 commits

Author SHA1 Message Date
939d0cc861
system/tailscale: persist tailscale state
Some checks are pending
CI / Build linux-lava for x86_64-linux (push) Waiting to run
2026-05-30 20:37:42 +10:00
0edeac9f4c
user/neovim: remove lsp.with 2026-05-30 19:38:31 +10:00
6 changed files with 34 additions and 23 deletions

9
modules/binds.nix Normal file
View file

@ -0,0 +1,9 @@
{ config, lib, ...}: {
imports = [ ./options.nix ];
fileSystems = lib.mapAttrs (dest: key: {
depends = [ "/persist" ];
device = "/persist/binds/${key}";
fsType = "none";
options = [ "bind" ];
}) config.me.binds;
}

View file

@ -14,6 +14,7 @@ let
}) paths
);
in {
binds = ./binds.nix;
options = ./options.nix;
services = mkAttrsFromPaths [
./services/banksia.nix

View file

@ -44,5 +44,10 @@ in {
type = types.bool;
default = false;
};
binds = lib.mkOption {
type = with lib.types; attrsOf str;
default = {};
};
};
}

View file

@ -1,5 +1,5 @@
{ config, inputs, modules, ... }: {
imports = [ modules.options ];
imports = [ modules.binds modules.options ];
environment.etc = {
"machine-id".source = "/persist/machine-id";

View file

@ -1,5 +1,6 @@
{ config, ... }: {
age.secrets.tailscale_auth.file = ../../secrets/tailscale_auth.age;
me.binds."/var/lib/tailscale" = "tailscale";
services.tailscale = {
enable = true;
authKeyFile = config.age.secrets.tailscale_auth.path;

View file

@ -157,18 +157,13 @@ vim.api.nvim_create_autocmd("LspAttach", {
end
})
vim.lsp.handlers["textDocument/publishDiagnostics"] = vim.lsp.with(
vim.lsp.diagnostic.on_publish_diagnostics, {
vim.diagnostic.config({
focusable = false,
virtual_text = false,
underline = true,
signs = true,
update_in_insert = true
}
)
vim.lsp.handlers["textDocument/signatureHelp"] = vim.lsp.with(
vim.lsp.handlers.signature_help, { focusable = false }
)
})
capabilities = require('cmp_nvim_lsp').default_capabilities(capabilities)