added samba

This commit is contained in:
ISnortPennies 2022-08-08 00:18:37 -04:00 committed by ISnortPennies
parent 84774eedc0
commit 8e626d25e7
10 changed files with 64 additions and 25 deletions

View file

@ -3,8 +3,9 @@
nix.settings.auto-optimise-store = true;
networking = {
firewall.enable = true;
firewall.allowPing = true;
useDHCP = lib.mkDefault true;
networkmanager. enable = true;
networkmanager.enable = true;
};
qt5 = {
enable = true;

View file

@ -1,36 +1,31 @@
{ config, pkgs, callPackage, ... }:
{
environment.systemPackages = with pkgs; [
#single commands
nano
nano #editor
wget
neofetch
htop
efibootmgr
maim
htop #view tasks
efibootmgr #efi editor
maim #screenshooter
curlFull
#lightdm
#lightm stuff
lightdm
lightdm-mini-greeter
#needed utils
pipewire
xorg.xf86videoamdgpu
mesa
mesa-demos
mesa #3d acceleration
git #git duh
pciutils
git
dash
binutils
alsa-utils
btrfs-progs #for external harddrive
#user/gui
discord
spotify
spotify-tray
vlc
bitwarden
protonvpn-gui
gimp
qbittorrent
feh
feh #for wallpaper
#explicit xfce4 for bspwm
xarchive
xfce.catfish
@ -42,11 +37,13 @@ environment.systemPackages = with pkgs; [
networkmanager_dmenu
networkmanagerapplet
dmenu
qsudo
flashfocus
pavucontrol
gpick
xclip
alsa-utils
neofetch
#my polkit fix
polkit_fix
#for thunar root
qsudo
];
}

View file

@ -4,10 +4,6 @@
{
output = "HDMI-0";
primary = true;
monitorConfig = ''
DisplaySize 1920 1080
Option "DPMS" "false"
'';
}
];
screenSection = ''

22
modules/smb.nix Normal file
View file

@ -0,0 +1,22 @@
{
services.samba-wsdd.enable = true; # make shares visible for windows 10 clients
networking.firewall = {
allowedTCPPorts = [ 139 445 ];
allowedUDPPorts = [ 137 138 ];
};
services.samba = {
enable = true;
securityType = "user";
openFirewall = true;
shares = {
Share = {
path = "/home/gerg/Share";
browseable = "no";
"read only" = "no";
"guest ok" = "no";
"force user" = "gerg";
"force group" = "users";
};
};
};
}