Compare commits
5 Commits
387b531fbb
...
707e3a3738
Author | SHA1 | Date | |
---|---|---|---|
707e3a3738 | |||
9438e80797 | |||
c71ab8ea85 | |||
30ab66549f | |||
e54fe9162c |
|
@ -100,7 +100,6 @@ in
|
|||
videos = "${homeDir}/vid";
|
||||
};
|
||||
|
||||
|
||||
programs = {
|
||||
bash = {
|
||||
enable = true;
|
||||
|
@ -158,18 +157,22 @@ in
|
|||
require('Comment').setup()
|
||||
local lspcfg = require('lspconfig')
|
||||
lspcfg.typst_lsp.setup({
|
||||
cmd = { '${pkgs.typst-lsp}/bin/typst-lsp' }
|
||||
cmd = { '${pkgs.typst-lsp}/bin/typst-lsp' },
|
||||
})
|
||||
lspcfg.hls.setup({
|
||||
cmd = { '${hls_wrapper}', 'lsp' }
|
||||
cmd = { '${hls_wrapper}', 'lsp' },
|
||||
})
|
||||
lspcfg.pyright.setup({
|
||||
cmd = { '${pkgs.nodePackages.pyright}/bin/pyright-langserver', '--stdio' }
|
||||
cmd = { '${pkgs.nodePackages.pyright}/bin/pyright-langserver', '--stdio' },
|
||||
})
|
||||
|
||||
vim.api.nvim_create_autocmd('LspAttach', {
|
||||
callback = function(args)
|
||||
vim.keymap.set('n', 'K', vim.lsp.buf.hover, { buffer = args.buf })
|
||||
local opts = { buffer = args.buf }
|
||||
vim.keymap.set('n', 'K', vim.lsp.buf.hover, opts)
|
||||
vim.keymap.set('n', '<localleader>r', vim.lsp.buf.rename, opts)
|
||||
vim.keymap.set('n', '<localleader>a', vim.lsp.buf.code_action, opts)
|
||||
vim.keymap.set('i', '<C-n>', vim.lsp.omnifunc, opts)
|
||||
end,
|
||||
})
|
||||
|
||||
|
@ -300,6 +303,11 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
direnv = {
|
||||
enable = true;
|
||||
nix-direnv.enable = true;
|
||||
};
|
||||
|
||||
alacritty = {
|
||||
enable = true;
|
||||
settings = {
|
||||
|
@ -342,5 +350,19 @@ in
|
|||
''; in "${tmux-menu}";
|
||||
};
|
||||
};
|
||||
|
||||
ssh = {
|
||||
enable = true;
|
||||
matchBlocks = {
|
||||
remarkable = {
|
||||
hostname = "10.11.99.1";
|
||||
user = "root";
|
||||
};
|
||||
lazarus = {
|
||||
hostname = "rachel.cafe";
|
||||
user = "deppy";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -63,6 +63,14 @@
|
|||
networking.nameservers = [ "8.8.8.8" ];
|
||||
networking.resolvconf.dnsExtensionMechanism = false;
|
||||
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
settings = {
|
||||
PasswordAuthentication = true;
|
||||
PermitRootLogin = "no";
|
||||
};
|
||||
};
|
||||
|
||||
# [NFS]
|
||||
fileSystems."/home/rachel/music" = {
|
||||
device = "rachel.cafe:/srv/music";
|
||||
|
@ -101,8 +109,13 @@
|
|||
enable = true;
|
||||
desktopManager.plasma5.enable = true;
|
||||
displayManager.startx.enable = true;
|
||||
layout = "us,se";
|
||||
xkbOptions = "grp:alt_caps_toggle";
|
||||
layout = "sus";
|
||||
extraLayouts.sus = {
|
||||
description = "Swedish US";
|
||||
languages = [ "se" ];
|
||||
symbolsFile = ../shared/sus.xkb;
|
||||
};
|
||||
libinput = {
|
||||
enable = true;
|
||||
touchpad = {
|
||||
|
@ -145,7 +158,7 @@
|
|||
|
||||
# [SECURITY / FIREWALL]
|
||||
networking.firewall.enable = true;
|
||||
networking.firewall.allowedTCPPorts = [ ];
|
||||
networking.firewall.allowedTCPPorts = [ 22 ];
|
||||
networking.firewall.allowedUDPPorts = [ ];
|
||||
programs.gnupg.agent = {
|
||||
enable = true;
|
||||
|
|
9
shared/sus.xkb
Normal file
9
shared/sus.xkb
Normal file
|
@ -0,0 +1,9 @@
|
|||
xkb_symbols "sus" {
|
||||
include "pc"
|
||||
include "se(us)"
|
||||
|
||||
key <AD11> {[ bracketleft, braceleft, aring, Aring ]};
|
||||
key <AC10> {[ semicolon, colon, odiaeresis, Odiaeresis ]};
|
||||
key <AC11> {[ apostrophe, quatedbl, adiaeresis, Adiaeresis ]};
|
||||
|
||||
};
|
Loading…
Reference in New Issue
Block a user