mirror of
https://github.com/Nickiel12/nicks-nix-config.git
synced 2024-11-24 21:55:28 -08:00
Compare commits
No commits in common. "a7b22a413ffce1982b5f9a184c90f3c205798879" and "804c9fe07071889958ddf3ed587e4756afb6bb11" have entirely different histories.
a7b22a413f
...
804c9fe070
5 changed files with 7 additions and 39 deletions
|
@ -9,7 +9,6 @@
|
||||||
./configuration.nix
|
./configuration.nix
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
./modules/dnsmasq.nix
|
./modules/dnsmasq.nix
|
||||||
./modules/firewall.nix
|
|
||||||
./modules/forgejo.nix
|
./modules/forgejo.nix
|
||||||
./modules/headscale.nix
|
./modules/headscale.nix
|
||||||
./modules/msmtp.nix
|
./modules/msmtp.nix
|
||||||
|
@ -75,6 +74,10 @@
|
||||||
# Lazy IPv6 connectivity for the container
|
# Lazy IPv6 connectivity for the container
|
||||||
enableIPv6 = true;
|
enableIPv6 = true;
|
||||||
};
|
};
|
||||||
|
firewall = {
|
||||||
|
enable = true;
|
||||||
|
allowedTCPPorts = [80 443 3001 5432]; # port 3001 opened to allow git traffic on the local netword
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services.jellyfin = {
|
services.jellyfin = {
|
||||||
|
|
|
@ -1,18 +0,0 @@
|
||||||
{ config, pkgs, ...}:
|
|
||||||
|
|
||||||
let
|
|
||||||
in
|
|
||||||
{
|
|
||||||
networking.firewall = {
|
|
||||||
enable = true;
|
|
||||||
allowedTCPPorts = [80 443 5432];
|
|
||||||
|
|
||||||
extraCommands = with pkgs.lib; ''
|
|
||||||
# ${pkgs.nftables}/bin/nft -f - <<EOF
|
|
||||||
|
|
||||||
# EOF
|
|
||||||
# Already handled by tailscale in ts-input
|
|
||||||
# ${pkgs.nftables}/bin/nft insert rule filter nixos-fw ip saddr 100.64.0.0-100.64.255.255 iifname "enp2s0" counter jump nixos-fw-log-refuse
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -7,10 +7,6 @@ let
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
networking.firewall = {
|
|
||||||
allowedTCPPorts = [3001];
|
|
||||||
};
|
|
||||||
|
|
||||||
system.activationScripts.copyStuff = "cp -r ${../../../rsrcs/giteaCustomDir}/. /Aurora/Forgejo/custom";
|
system.activationScripts.copyStuff = "cp -r ${../../../rsrcs/giteaCustomDir}/. /Aurora/Forgejo/custom";
|
||||||
system.activationScripts.copyTheme = "mkdir -p /Aurora/Forgejo/custom/public/assets/css && cp ${palenight}/dist/theme-palenight.css /Aurora/Forgejo/custom/public/assets/css/";
|
system.activationScripts.copyTheme = "mkdir -p /Aurora/Forgejo/custom/public/assets/css && cp ${palenight}/dist/theme-palenight.css /Aurora/Forgejo/custom/public/assets/css/";
|
||||||
|
|
||||||
|
|
|
@ -16,8 +16,8 @@ in
|
||||||
sync_frequency = "20m";
|
sync_frequency = "20m";
|
||||||
sync_address = if (hostname == "Alaska") then "http://127.0.0.1:8910"
|
sync_address = if (hostname == "Alaska") then "http://127.0.0.1:8910"
|
||||||
else "https://atuin.nickiel.net";
|
else "https://atuin.nickiel.net";
|
||||||
filter_mode = "session"; #"global" | "host" | "session" | "directory"
|
# filter_mode = "global" | "host" | "session" | "directory"
|
||||||
inline_height = 10;
|
inline_height = 40;
|
||||||
show_preview = true;
|
show_preview = true;
|
||||||
show_help = true;
|
show_help = true;
|
||||||
exit_mode = "return-query";
|
exit_mode = "return-query";
|
||||||
|
|
|
@ -19,10 +19,6 @@ in
|
||||||
mapleader = " ";
|
mapleader = " ";
|
||||||
};
|
};
|
||||||
|
|
||||||
filetype.extension = {
|
|
||||||
templ = "templ";
|
|
||||||
};
|
|
||||||
|
|
||||||
options = {
|
options = {
|
||||||
autoindent = true;
|
autoindent = true;
|
||||||
expandtab = true;
|
expandtab = true;
|
||||||
|
@ -169,13 +165,7 @@ in
|
||||||
enable = true;
|
enable = true;
|
||||||
installLanguageServer = true;
|
installLanguageServer = true;
|
||||||
};
|
};
|
||||||
templ = {
|
|
||||||
enable = true;
|
|
||||||
autostart = true;
|
|
||||||
installLanguageServer = true;
|
|
||||||
};
|
|
||||||
html.enable = true;
|
html.enable = true;
|
||||||
tsserver.enable = true;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -196,10 +186,7 @@ in
|
||||||
ensureInstalled = [
|
ensureInstalled = [
|
||||||
"rust"
|
"rust"
|
||||||
"toml"
|
"toml"
|
||||||
"templ"
|
"lua"
|
||||||
"go"
|
|
||||||
"html"
|
|
||||||
"json"
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
rainbow-delimiters.enable = true;
|
rainbow-delimiters.enable = true;
|
||||||
|
|
Loading…
Reference in a new issue