diff --git a/README.md b/README.md index df68e69..823ab2d 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,6 @@ things to do ------------ - integrate `disko` and `sops-nix` into the setup -- switch from gitea to cgit - establish backup infrastructure for `netbox` - move gmail-mail-bridge into mail-sync repo * (perhaps figure out how to produce a flake for it) diff --git a/boxes/mainsail/default.nix b/boxes/mainsail/default.nix index 16ca93b..9250640 100644 --- a/boxes/mainsail/default.nix +++ b/boxes/mainsail/default.nix @@ -4,6 +4,7 @@ ./hardware-configuration.nix ../../modules/ssh-phone-home.nix ../../modules/bootstrap.nix + ../../modules/hosts.nix ../../modules/common.nix ]; diff --git a/boxes/mlg/default.nix b/boxes/mlg/default.nix index 335577b..948985a 100644 --- a/boxes/mlg/default.nix +++ b/boxes/mlg/default.nix @@ -5,6 +5,7 @@ ./hardware-configuration.nix ./nvidia.nix ../../modules/ssh-phone-home.nix + ../../modules/hosts.nix ../../modules/bootstrap.nix ../../modules/common.nix ../../modules/x11.nix @@ -24,6 +25,7 @@ vscodium thunderbird libreoffice + texliveMedium ]; services.hardware.bolt.enable = true; # thunderbolt support diff --git a/boxes/virtbox/default.nix b/boxes/virtbox/default.nix index 81e64ab..3653e41 100644 --- a/boxes/virtbox/default.nix +++ b/boxes/virtbox/default.nix @@ -4,6 +4,7 @@ imports = [ ./hardware-configuration.nix ../../modules/bootstrap.nix + ../../modules/hosts.nix ../../modules/common.nix ../../modules/x11.nix ../../modules/discord.nix diff --git a/boxes/x230t/default.nix b/boxes/x230t/default.nix index 8762215..1239e63 100644 --- a/boxes/x230t/default.nix +++ b/boxes/x230t/default.nix @@ -7,6 +7,7 @@ ../../modules/bootstrap.nix ../../modules/common.nix ../../modules/x11.nix + ../../modules/hosts.nix ../../modules/tlp.nix ../../modules/media.nix ../../modules/anki.nix diff --git a/home/nvim/init.lua b/home/nvim/init.lua index 0d891a5..41ce1ad 100644 --- a/home/nvim/init.lua +++ b/home/nvim/init.lua @@ -146,8 +146,8 @@ local packer = require('packer').startup(function(use) require('packer').sync() end end); --- }}} - +-- -- }}} + nnoremap('ff', function() require('telescope.builtin').find_files() end) @@ -171,6 +171,12 @@ luasnip.add_snippets("tex", { luasnip.text_node({ "", "\\end{" }), ls_extras.rep(1), luasnip.text_node("}") }) }) --- }}} -return packer +luasnip.add_snippets("tex", { + luasnip.snippet("desc", { + luasnip.text_node({ "\\begin{description}", "\t\\item "}), + luasnip.insert_node(1), + luasnip.text_node({ "", "\\end{description}" }), + }) +}) +-- }}} diff --git a/home/nws/default.nix b/home/nws/default.nix new file mode 100644 index 0000000..4877d56 --- /dev/null +++ b/home/nws/default.nix @@ -0,0 +1,9 @@ +{ lib, config, pkgs, home, ... }: + +{ + home.file = { + ".config/nws" = { + text = ''KOHX''; + }; + }; +} diff --git a/home/x11.nix b/home/x11.nix index b919cb6..23cd718 100644 --- a/home/x11.nix +++ b/home/x11.nix @@ -18,6 +18,7 @@ ./neomutt ./msmtp ./rbw + ./nws ./x11-progs.nix ./tty.nix diff --git a/modules/hosts.nix b/modules/hosts.nix new file mode 100644 index 0000000..9a2d351 --- /dev/null +++ b/modules/hosts.nix @@ -0,0 +1,10 @@ +{ lib, config, pkgs, inputs, ...}: + +{ + networking.hosts = { + "192.168.1.120" = [ "x230t" ]; + "192.168.1.52" = [ "mlg" ]; + "192.168.1.100" = [ "mainsail" ]; + }; +} +