Made samhain capable of being a NAS. Added scrot to litha. Probably some other changes.

This commit is contained in:
kat witch 2020-11-07 22:24:57 +00:00 committed by kat
parent 9b8ec24b4f
commit d92f0c182e
3 changed files with 51 additions and 3 deletions

View file

@ -11,7 +11,7 @@
../../profiles/network ../../profiles/network
../../profiles/yubikey ../../profiles/yubikey
]; ];
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
@ -20,6 +20,40 @@
networking.useDHCP = false; networking.useDHCP = false;
networking.interfaces.enp34s0.useDHCP = true; networking.interfaces.enp34s0.useDHCP = true;
networking.firewall.allowPing = true;
networking.firewall.allowedTCPPorts = [ 445 139 9091 ];
networking.firewall.allowedUDPPorts = [ 137 138 ];
services.transmission.enable = true;
services.samba = {
enable = true;
securityType = "user";
extraConfig = ''
workgroup = WORKGROUP
server string = smbnix
netbios name = smbnix
security = user
#use sendfile = yes
#max protocol = smb2
hosts allow = 192.168.1. localhost
hosts deny = 0.0.0.0/0
guest account = nobody
map to guest = bad user
'';
shares = {
public = {
path = "/var/lib/transmission/Downloads";
browseable = "yes";
"read only" = "no";
"guest ok" = "yes";
"create mask" = "0644";
"directory mask" = "0755";
"force user" = "transmission";
"force group" = "transmission";
};
};
};
system.stateVersion = "20.09"; system.stateVersion = "20.09";

View file

@ -41,7 +41,6 @@ in {
smartmontools smartmontools
lm_sensors lm_sensors
htop htop
neovim
ripgrep ripgrep
git git
wget wget

View file

@ -13,6 +13,7 @@ in {
pkgs.mumble pkgs.mumble
unstable.pkgs.syncplay unstable.pkgs.syncplay
unstable.pkgs.youtube-dl unstable.pkgs.youtube-dl
pkgs.transmission-gtk
pkgs.jdk11 pkgs.jdk11
pkgs.lm_sensors pkgs.lm_sensors
pkgs.discord pkgs.discord
@ -20,8 +21,8 @@ in {
pkgs.dino pkgs.dino
pkgs.nitrogen pkgs.nitrogen
pkgs.terminator pkgs.terminator
pkgs.kdeconnect
pkgs.appimage-run pkgs.appimage-run
pkgs.scrot
pkgs.gimp pkgs.gimp
pkgs.vscode pkgs.vscode
pkgs.neofetch pkgs.neofetch
@ -34,6 +35,11 @@ in {
''; '';
}; };
services.kdeconnect = {
enable = true;
indicator = true;
};
gtk = { gtk = {
enable = true; enable = true;
iconTheme = { iconTheme = {
@ -50,6 +56,15 @@ in {
fonts.fontconfig.enable = true; fonts.fontconfig.enable = true;
fonts.fonts = [ pkgs.nerdfonts pkgs.corefonts ]; fonts.fonts = [ pkgs.nerdfonts pkgs.corefonts ];
networking.firewall = {
allowedTCPPortRanges = [
{ from = 1714; to = 1764; }
];
allowedUDPPortRanges = [
{ from = 1714; to = 1764; }
];
};
sound.enable = true; sound.enable = true;
hardware.pulseaudio.enable = true; hardware.pulseaudio.enable = true;
hardware.opengl.enable = true; hardware.opengl.enable = true;