Compare commits

...

2 Commits

Author SHA1 Message Date
Anish Lakhwara a37a72e81f box: get gonic working again (needed headphones user) 2024-03-16 00:56:57 -07:00
Anish Lakhwara c0ff69d9f8 rnix-lsp deprecated 2024-03-16 00:31:57 -07:00
4 changed files with 14 additions and 11 deletions

View File

@ -635,7 +635,7 @@ in
}
}
local servers = { 'clojure_lsp', 'terraform_lsp', 'zls', 'pyright', 'rust_analyzer', 'tsserver', 'lua_ls'}
local servers = { 'clojure_lsp', 'terraform_lsp', 'zls', 'pyright', 'rust_analyzer', 'tsserver', 'lua_ls', 'nil_ls'}
for _, lsp in ipairs(servers) do
lspconfig[lsp].setup {
on_attach = function(client, bufnr)
@ -645,13 +645,7 @@ in
capabilities = capabilities,
}
end
-- rnix doesn't support gps
lspconfig['rnix'].setup {
on_attach = function(client, bufnr)
format.on_attach(client)
end,
capabilities = capabilities,
}
-- fennel-ls doesn't support gps
lspconfig['fennel-ls'].setup {
on_attach = function(client, bufnr)
@ -865,7 +859,7 @@ in
nodejs
clojure-lsp
clojure
rnix-lsp
nil
terraform-lsp
rust-analyzer
clj-kondo

View File

@ -10,9 +10,9 @@
# ../profiles/monitoring
../profiles/nfs
../profiles/gonic
../profiles/headphones
# ../profiles/headphones # TODO broken on 23.11, see: https://github.com/rembo10/headphones/issues/3320
../profiles/radicale
../profiles/seafile
# ../profiles/seafile # waiting for https://github.com/NixOS/nixpkgs/pull/249523 to be merged
../profiles/syncthing
../profiles/dhyan
../profiles/calibre

View File

@ -9,4 +9,12 @@
mossnet.gonic.user = "headphones";
mossnet.gonic.group = "audio";
networking.firewall.allowedTCPPorts = [ 4747 ];
users.users.gonic = {
uid = config.ids.uids.headphones;
# isSystemUser = true;
group = "audio";
home = "/var/lib/headphones";
createHome = true;
};
}

View File

@ -4,6 +4,7 @@
enable = true;
host = "0.0.0.0";
port = 8181;
package = "${pkgs.unstable.headphones}";
user = "headphones";
group = "audio";
dataDir = "/data/music";