igor: Enable vsftpd
This commit is contained in:
parent
981e98da94
commit
3cf1677ba8
2 changed files with 33 additions and 1 deletions
|
|
@ -9,11 +9,11 @@
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
../../modules/security.nix
|
../../modules/security.nix
|
||||||
../../modules/nix-config.nix
|
../../modules/nix-config.nix
|
||||||
../../modules/iohk.nix
|
|
||||||
../../modules/timezone.nix
|
../../modules/timezone.nix
|
||||||
../../modules/keybase.nix
|
../../modules/keybase.nix
|
||||||
../../modules/ssh.nix
|
../../modules/ssh.nix
|
||||||
../../modules/tailscale
|
../../modules/tailscale
|
||||||
|
../../modules/vsftpd
|
||||||
];
|
];
|
||||||
|
|
||||||
config.boot.loader.grub.enable = true;
|
config.boot.loader.grub.enable = true;
|
||||||
|
|
@ -92,6 +92,7 @@
|
||||||
config.services.libinput.enable = true;
|
config.services.libinput.enable = true;
|
||||||
|
|
||||||
config.programs.firefox.enable = true;
|
config.programs.firefox.enable = true;
|
||||||
|
config.programs.git.enable = true;
|
||||||
|
|
||||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||||
config.users.users.alex = {
|
config.users.users.alex = {
|
||||||
|
|
@ -100,6 +101,20 @@
|
||||||
shell = pkgs.zsh;
|
shell = pkgs.zsh;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
config.environment.systemPackages = with pkgs; [
|
||||||
|
alacritty
|
||||||
|
firefox
|
||||||
|
dolphin
|
||||||
|
waybar
|
||||||
|
hyprpaper
|
||||||
|
wofi
|
||||||
|
];
|
||||||
|
|
||||||
|
config.programs.hyprland = {
|
||||||
|
enable = true;
|
||||||
|
withUWSM = true;
|
||||||
|
};
|
||||||
|
|
||||||
config.programs.neovim = {
|
config.programs.neovim = {
|
||||||
enable = true;
|
enable = true;
|
||||||
defaultEditor = true;
|
defaultEditor = true;
|
||||||
|
|
|
||||||
17
modules/vsftpd/default.nix
Normal file
17
modules/vsftpd/default.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
{ lib, pkgs, ... }:
|
||||||
|
{
|
||||||
|
config.services.vsftpd = {
|
||||||
|
enable = true;
|
||||||
|
localUsers = true;
|
||||||
|
writeEnable = true;
|
||||||
|
chrootlocalUser = true;
|
||||||
|
allowWriteableChroot = true;
|
||||||
|
userlist = [ "scan" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
config.users.users.scan = {
|
||||||
|
isNormalUser = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
config.networking.firewall.allowedTCPPorts = [ 21 ];
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue