Compare commits
3 commits
9e47462835
...
e8ad16a7e6
Author | SHA1 | Date | |
---|---|---|---|
e8ad16a7e6 | |||
b59053bc18 | |||
5de98e93e2 |
4 changed files with 25 additions and 23 deletions
|
@ -1,14 +1,13 @@
|
|||
{ config
|
||||
, lib
|
||||
, pkgs
|
||||
, # vars,
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
# vars,
|
||||
...
|
||||
}:
|
||||
let
|
||||
}: let
|
||||
vars = import ../../../../vars.nix;
|
||||
colors = config.colorScheme.colors;
|
||||
in
|
||||
{
|
||||
in {
|
||||
home.sessionVariables.EDITOR = "nvim";
|
||||
|
||||
programs.neovim = {
|
||||
|
@ -30,6 +29,7 @@ in
|
|||
alejandra # nix
|
||||
clang-tools_16 # c/c++
|
||||
rustfmt
|
||||
yamlfmt
|
||||
|
||||
# Linters
|
||||
ruff # python
|
||||
|
|
|
@ -17,6 +17,8 @@ local opts = {
|
|||
null_ls.builtins.formatting.alejandra,
|
||||
-- Rust
|
||||
null_ls.builtins.formatting.rustfmt,
|
||||
-- YAML
|
||||
null_ls.builtins.formatting.yamlfmt,
|
||||
},
|
||||
on_attach = function(client, bufnr)
|
||||
if client.supports_method("textDocument/formatting") then
|
||||
|
|
|
@ -5,16 +5,16 @@
|
|||
localUsers = true;
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [21];
|
||||
services.vsftpd.extraConfig = ''
|
||||
pasv_enable=Yes
|
||||
pasv_min_port=51000
|
||||
pasv_max_port=51999
|
||||
'';
|
||||
networking.firewall.allowedTCPPortRanges = [
|
||||
{
|
||||
from = 51000;
|
||||
to = 51999;
|
||||
}
|
||||
];
|
||||
# networking.firewall.allowedTCPPorts = [21];
|
||||
# services.vsftpd.extraConfig = ''
|
||||
# pasv_enable=Yes
|
||||
# pasv_min_port=51000
|
||||
# pasv_max_port=51999
|
||||
# '';
|
||||
# networking.firewall.allowedTCPPortRanges = [
|
||||
# {
|
||||
# from = 51000;
|
||||
# to = 51999;
|
||||
# }
|
||||
# ];
|
||||
}
|
||||
|
|
|
@ -49,8 +49,8 @@ in {
|
|||
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
settings.PasswordAuthentication = true;
|
||||
settings.KbdInteractiveAuthentication = true;
|
||||
settings.PasswordAuthentication = false;
|
||||
settings.KbdInteractiveAuthentication = false;
|
||||
};
|
||||
|
||||
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
|
||||
|
|
Loading…
Reference in a new issue