cleanup server config
This commit is contained in:
parent
86d92cc6b5
commit
c2c7894f16
@ -51,6 +51,15 @@ let
|
|||||||
"sub-sync" (builtins.readFile ../scripts/sub-sync.sh);
|
"sub-sync" (builtins.readFile ../scripts/sub-sync.sh);
|
||||||
jawzChat = pkgs.writeScriptBin
|
jawzChat = pkgs.writeScriptBin
|
||||||
"chat-dl" (builtins.readFile ../scripts/chat-dl.sh);
|
"chat-dl" (builtins.readFile ../scripts/chat-dl.sh);
|
||||||
|
jawzPicarto = pkgs.writeScriptBin
|
||||||
|
"picarto-dl" (builtins.readFile ../scripts/picarto-dl.sh);
|
||||||
|
jawzScripts = [
|
||||||
|
jawzManageLibrary
|
||||||
|
jawzTasks
|
||||||
|
jawzSubs
|
||||||
|
jawzChat
|
||||||
|
jawzPicarto
|
||||||
|
];
|
||||||
in
|
in
|
||||||
{ # Remember to close this bracket at the end of the document
|
{ # Remember to close this bracket at the end of the document
|
||||||
#+end_src
|
#+end_src
|
||||||
@ -100,7 +109,6 @@ networking = {
|
|||||||
51413 # torrent sedding
|
51413 # torrent sedding
|
||||||
9091 # qbittorrent
|
9091 # qbittorrent
|
||||||
2049 # nfs
|
2049 # nfs
|
||||||
5357 3702 # samba-wsdd
|
|
||||||
];
|
];
|
||||||
open_firewall_port_ranges = [ ];
|
open_firewall_port_ranges = [ ];
|
||||||
in
|
in
|
||||||
@ -336,9 +344,9 @@ main draws of Linux for me.
|
|||||||
#+begin_src nix
|
#+begin_src nix
|
||||||
# Fonts
|
# Fonts
|
||||||
(nerdfonts.override {
|
(nerdfonts.override {
|
||||||
fonts = [ "Agave" "CascadiaCode" "SourceCodePro"
|
fonts = [ "CascadiaCode"
|
||||||
"ComicShannsMono" "OpenDyslexic"
|
"ComicShannsMono"
|
||||||
"Ubuntu" "FiraCode" "Iosevka" ];
|
"Iosevka" ];
|
||||||
})
|
})
|
||||||
symbola
|
symbola
|
||||||
#+end_src
|
#+end_src
|
||||||
@ -363,13 +371,9 @@ smartmontools # check hard drie health
|
|||||||
Here I compile my own scripts into binaries
|
Here I compile my own scripts into binaries
|
||||||
|
|
||||||
#+begin_src nix
|
#+begin_src nix
|
||||||
jawzManageLibrary
|
jawzScripts
|
||||||
jawzTasks
|
|
||||||
jawzSubs
|
|
||||||
jawzChat
|
|
||||||
(writeScriptBin "ffmpeg4discord" (builtins.readFile ../scripts/ffmpeg4discord.py))
|
(writeScriptBin "ffmpeg4discord" (builtins.readFile ../scripts/ffmpeg4discord.py))
|
||||||
(writeScriptBin "ffmpreg" (builtins.readFile ../scripts/ffmpreg.sh))
|
(writeScriptBin "ffmpreg" (builtins.readFile ../scripts/ffmpreg.sh))
|
||||||
(writeScriptBin "picarto-dl" (builtins.readFile ../scripts/picarto-dl.sh))
|
|
||||||
(writeScriptBin "split-dir" (builtins.readFile ../scripts/split-dir.sh))
|
(writeScriptBin "split-dir" (builtins.readFile ../scripts/split-dir.sh))
|
||||||
(writeScriptBin "pika-list" (builtins.readFile ../scripts/pika-list.sh))
|
(writeScriptBin "pika-list" (builtins.readFile ../scripts/pika-list.sh))
|
||||||
(writeScriptBin "run" (builtins.readFile ../scripts/run.sh))
|
(writeScriptBin "run" (builtins.readFile ../scripts/run.sh))
|
||||||
@ -380,18 +384,7 @@ jawzChat
|
|||||||
Assorted development packages and libraries, categorized by languages.
|
Assorted development packages and libraries, categorized by languages.
|
||||||
|
|
||||||
#+begin_src nix
|
#+begin_src nix
|
||||||
# required (optionally) by doom emacs, but still are rather useful
|
|
||||||
tree-sitter # code parsing based on symbols and shit, I do not get it
|
|
||||||
graphviz # graphs
|
|
||||||
tetex
|
|
||||||
# languagetool # proofreader for English
|
|
||||||
# these two are for doom everywhere
|
|
||||||
xorg.xwininfo
|
|
||||||
xdotool
|
|
||||||
xclip
|
|
||||||
|
|
||||||
tldr # man for retards
|
tldr # man for retards
|
||||||
exercism # learn to code
|
|
||||||
|
|
||||||
# SH
|
# SH
|
||||||
bats # testing system, required by Exercism
|
bats # testing system, required by Exercism
|
||||||
@ -407,8 +400,6 @@ cachix # why spend time compiling?
|
|||||||
|
|
||||||
# PYTHON.
|
# PYTHON.
|
||||||
(python3.withPackages (ps: with ps; [
|
(python3.withPackages (ps: with ps; [
|
||||||
pipenv # python development workflow for humans
|
|
||||||
# poetry # dependency management made easy
|
|
||||||
flake8 # wraper for pyflakes, pycodestyle and mccabe
|
flake8 # wraper for pyflakes, pycodestyle and mccabe
|
||||||
isort # sort Python imports
|
isort # sort Python imports
|
||||||
nose # testing and running python scripts
|
nose # testing and running python scripts
|
||||||
@ -419,15 +410,6 @@ cachix # why spend time compiling?
|
|||||||
black # Python code formatter
|
black # Python code formatter
|
||||||
pylint # bug and style checker for python
|
pylint # bug and style checker for python
|
||||||
])) # base language
|
])) # base language
|
||||||
|
|
||||||
# C# & Rust
|
|
||||||
# omnisharp-roslyn # c# linter and code formatter
|
|
||||||
|
|
||||||
# HASKELL
|
|
||||||
# cabal-install # haskell interface
|
|
||||||
|
|
||||||
# JS
|
|
||||||
nodejs # not as bad as I thought
|
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
** CUSTOM PYTHON SCRIPTS
|
** CUSTOM PYTHON SCRIPTS
|
||||||
@ -761,18 +743,6 @@ programs = {
|
|||||||
enable = true;
|
enable = true;
|
||||||
enableSSHSupport = true;
|
enableSSHSupport = true;
|
||||||
};
|
};
|
||||||
msmtp = {
|
|
||||||
enable = true;
|
|
||||||
accounts.default = {
|
|
||||||
auth = true;
|
|
||||||
host = "smtp.gmail.com";
|
|
||||||
port = 587;
|
|
||||||
tls = true;
|
|
||||||
from = "stunner6399@gmail.com";
|
|
||||||
user = "stunner6399@gmail.com";
|
|
||||||
password = "eqyctcgjdykqeuwt";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
@ -809,44 +779,6 @@ services = {
|
|||||||
"/mnt/pool"
|
"/mnt/pool"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
samba-wsdd.enable = true;
|
|
||||||
samba = {
|
|
||||||
enable = false;
|
|
||||||
securityType = "user";
|
|
||||||
openFirewall = true;
|
|
||||||
extraConfig = ''
|
|
||||||
workgroup = WORKGROUP
|
|
||||||
server string = ${config.networking.hostName}
|
|
||||||
netbios name = ${config.networking.hostName}
|
|
||||||
security = user
|
|
||||||
|
|
||||||
create mask = 0664
|
|
||||||
force create mode = 0664
|
|
||||||
directory mask = 0775
|
|
||||||
force directory mode = 0775
|
|
||||||
follow symlinks = yes
|
|
||||||
|
|
||||||
hosts allow = 192.168.0.0 localhost
|
|
||||||
# hosts deny = 0.0.0.0/0
|
|
||||||
guest account = nobody
|
|
||||||
map to guest = bad user
|
|
||||||
'';
|
|
||||||
shares = let
|
|
||||||
smbShare = mountName: {
|
|
||||||
path = "/mnt/${mountName}";
|
|
||||||
browseable = "yes";
|
|
||||||
writable = "yes";
|
|
||||||
"read only" = "no";
|
|
||||||
"guest ok" = "yes";
|
|
||||||
"write list" = "capta";
|
|
||||||
"force user" = "capta";
|
|
||||||
"force group" = "WORKGROUP";
|
|
||||||
};
|
|
||||||
in {
|
|
||||||
pool = smbShare "pool" // { };
|
|
||||||
seedbox = smbShare "disks/seedbox" // { };
|
|
||||||
};
|
|
||||||
};
|
|
||||||
openssh = {
|
openssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
openFirewall = true;
|
openFirewall = true;
|
||||||
|
|||||||
@ -69,6 +69,20 @@ in {
|
|||||||
# # ]);
|
# # ]);
|
||||||
# # };
|
# # };
|
||||||
# };
|
# };
|
||||||
|
programs = {
|
||||||
|
msmtp = {
|
||||||
|
enable = true;
|
||||||
|
accounts.default = {
|
||||||
|
auth = true;
|
||||||
|
host = "smtp.gmail.com";
|
||||||
|
port = 587;
|
||||||
|
tls = true;
|
||||||
|
from = "stunner6399@gmail.com";
|
||||||
|
user = "stunner6399@gmail.com";
|
||||||
|
password = "eqyctcgjdykqeuwt";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
services = let
|
services = let
|
||||||
base = {
|
base = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user