Compare commits

..

2 commits

Author SHA1 Message Date
1a16816996
Add ftp client alias 2024-03-03 15:11:52 +01:00
4e921bfee2
Remove ftp firewall code 2024-03-03 15:11:32 +01:00
3 changed files with 4 additions and 13 deletions

View file

@ -29,6 +29,7 @@
ranger # TUI file manager ranger # TUI file manager
trickle # cli network limiter trickle # cli network limiter
du-dust # disk usage visualizer du-dust # disk usage visualizer
lftp # FTP client
nvd # Differ nvd # Differ
nix-output-monitor nix-output-monitor

View file

@ -7,6 +7,7 @@
inherit (lib) mkIf; inherit (lib) mkIf;
hasPackage = pname: lib.any (p: p ? pname && p.pname == pname) config.home.packages; hasPackage = pname: lib.any (p: p ? pname && p.pname == pname) config.home.packages;
hasRipgrep = hasPackage "ripgrep"; hasRipgrep = hasPackage "ripgrep";
hasLftp = hasPackage "lftp";
hasExa = hasPackage "eza"; hasExa = hasPackage "eza";
hasLazygit = config.programs.lazygit.enable; hasLazygit = config.programs.lazygit.enable;
hasLazydocker = hasPackage "lazydocker"; hasLazydocker = hasPackage "lazydocker";
@ -87,6 +88,8 @@ in {
udmount = "udisksctl mount -b"; udmount = "udisksctl mount -b";
udumount = "udisksctl unmount -b"; udumount = "udisksctl unmount -b";
fftp = mkIf hasLftp "lftp -u ghoscht, sftp://192.168.178.48";
}; };
functions = { functions = {
# Disable greeting # Disable greeting

View file

@ -4,17 +4,4 @@
writeEnable = true; writeEnable = true;
localUsers = true; 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;
# }
# ];
} }