aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--home/default.nix7
-rw-r--r--home/nvim/lsp.lua1
-rw-r--r--home/nvim/plugins/treesitter.lua3
-rw-r--r--hosts/saarni/default.nix24
4 files changed, 35 insertions, 0 deletions
diff --git a/home/default.nix b/home/default.nix
index 4ca97c3..b40a8ea 100644
--- a/home/default.nix
+++ b/home/default.nix
@@ -256,6 +256,13 @@ in
};
programs = {
+ tex-fmt = {
+ enable = true;
+ settings = {
+ wrap = false;
+ tabchar = "tab";
+ };
+ };
go = {
enable = true;
telemetry.mode = "off";
diff --git a/home/nvim/lsp.lua b/home/nvim/lsp.lua
index 2b8a730..36849fb 100644
--- a/home/nvim/lsp.lua
+++ b/home/nvim/lsp.lua
@@ -289,6 +289,7 @@ vim.lsp.config("bashls", {
vim.lsp.config("texlab", {
cmd = { "texlab" },
filetypes = { "tex", "plaintex", "bib" },
+ latexFormatter = "tex-fmt"
})
vim.lsp.enable({
diff --git a/home/nvim/plugins/treesitter.lua b/home/nvim/plugins/treesitter.lua
index c408901..7f470b0 100644
--- a/home/nvim/plugins/treesitter.lua
+++ b/home/nvim/plugins/treesitter.lua
@@ -9,4 +9,7 @@ require "nvim-treesitter".setup {
max_file_lines = 2000,
},
additional_vim_regex_highlighting = false,
+ indent = {
+ enable = true,
+ },
}
diff --git a/hosts/saarni/default.nix b/hosts/saarni/default.nix
index b614131..5043657 100644
--- a/hosts/saarni/default.nix
+++ b/hosts/saarni/default.nix
@@ -31,6 +31,30 @@
};
network = {
networks = {
+ "13-shared" = {
+ matchConfig = {
+ MACAddress = "5a:c1:1b:77:fc:e5";
+ };
+ linkConfig = {
+ Multicast = true;
+ };
+ networkConfig = {
+ DHCP = true;
+ IPv6AcceptRA = true;
+ MulticastDNS = true;
+ LinkLocalAddressing = "ipv6";
+ DNSSEC = true;
+ UseDomains = true;
+ };
+ dhcpV4Config = {
+ RouteMetric = 20;
+ UseDNS = true;
+ UseMTU = true;
+ };
+ ipv6AcceptRAConfig = {
+ UseMTU = true;
+ };
+ };
"10-lan" = {
matchConfig = {
Name = "enps0";