Generic commit

minor changes to hosts:Satori and home:natto
This commit is contained in:
2021-12-25 08:01:59 +05:30
parent 6130b448e0
commit 8b4212aa27
11 changed files with 237 additions and 188 deletions

View File

@@ -1,5 +1,4 @@
vim.api.nvim_set_option("termguicolors", true)
local nvimlsp = require('lspconfig')
local comm = vim.api.nvim_command
local bind = vim.api.nvim_set_keymap
local setvar = vim.api.nvim_set_var
@@ -352,9 +351,10 @@ capabilities.textDocument.completion.completionItem.resolveSupport = {
}
}
local nvimlsp = require('lspconfig')
for _, lsp in ipairs(servers) do
nvimlsp[lsp].setup { capabilities = capabilities, on_attach = on_attach }
end
vim.g.tex_flavor = "latex"
comm("set syntax=on")
comm("set syntax=off")

View File

@@ -1,4 +1,4 @@
{lib, config, pkgs, ... }:
{ lib, config, pkgs, ... }:
{
services = {
@@ -9,15 +9,18 @@
support32Bit = true;
};
pulse.enable = true;
#jack.enable = true;
jack.enable = true;
socketActivation = true;
# https://nixos.wiki/wiki/PipeWire#Low-latency_setup
config.pipewire = {
context.objects = [
{
factory = "spa-node-factory";
args = {
factory.name = "support.node.driver";
node.name = "Dummy-Driver";
priority.driver = 8000;
factory.name = "support.node.driver";
node.name = "Dummy-Driver";
priority.driver = 8000;
};
}
];
@@ -45,7 +48,7 @@
}
{
name = "libpipewire-module-access";
args = {};
args = { };
}
{ name = "libpipewire-module-adapter"; }
{ name = "libpipewire-module-link-factory"; }
@@ -62,7 +65,7 @@
{
name = "libpipewire-module-protocol-pulse";
args = {
pulse.min.req = "32/48000";
pulse.min.req = "32/48000";
pulse.min.quantum = "32/48000";
pulse.min.frag = "32/48000";
};
@@ -76,8 +79,11 @@
};
};
sound.enable = true;
# hardware = {
# pulseaudio.enable = true;
# pulseaudio.support32Bit = true;
# };
/* hardware = {
pulseaudio = {
enable = true;
support32Bit = true;
package = pkgs.pulseaudio.override { jackaudioSupport = true; };
};
};*/
}