slopfarms
This commit is contained in:
parent
fafb1bb009
commit
5acdaed42a
6 changed files with 162 additions and 5 deletions
|
|
@ -10,7 +10,7 @@
|
|||
../../modules/nixos/networking/ssh.nix
|
||||
../../modules/nixos/users/tulg.nix
|
||||
./traefik.nix
|
||||
#../../modules/home-manager/cli/default.nix
|
||||
./home.nix
|
||||
../../modules/servers/per-host/kittykat/vaultwarden.nix
|
||||
|
||||
../../modules/servers/per-host/kittykat/xray.nix
|
||||
|
|
|
|||
25
hosts/kittykat/home.nix
Normal file
25
hosts/kittykat/home.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
inputs,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
home-manager = {
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
extraSpecialArgs = {
|
||||
inherit inputs;
|
||||
};
|
||||
backupFileExtension = "backup";
|
||||
|
||||
users.tulg = {
|
||||
home.username = "tulg";
|
||||
home.homeDirectory = "/home/tulg";
|
||||
home.stateVersion = "25.05";
|
||||
|
||||
imports = [
|
||||
../../modules/home-manager/pkgs.nix
|
||||
../../modules/home-manager/cli/default.nix
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -2,10 +2,20 @@
|
|||
networking.firewall = {
|
||||
enable = true;
|
||||
allowedTCPPorts = [80 443 25565 25567];
|
||||
extraInputRules = ''
|
||||
tcp dport 2053 drop
|
||||
'';
|
||||
};
|
||||
networking.firewall.extraInputRules = ''
|
||||
tcp dport 2053 drop
|
||||
''; #fuck off
|
||||
|
||||
services.static-web-server = {
|
||||
enable = true;
|
||||
listen = "127.0.0.1:8080";
|
||||
root = "/var/www/kittykat";
|
||||
};
|
||||
|
||||
systemd.tmpfiles.rules = [
|
||||
"d /var/www/kittykat 0755 root root -"
|
||||
];
|
||||
|
||||
services.traefik = {
|
||||
enable = true;
|
||||
|
|
@ -14,7 +24,7 @@
|
|||
entryPoints = {
|
||||
web = {
|
||||
address = ":80";
|
||||
http.redirections.entrypoint = {
|
||||
http.redirections.entryPoint = {
|
||||
to = "websecure";
|
||||
scheme = "https";
|
||||
};
|
||||
|
|
@ -40,5 +50,18 @@
|
|||
|
||||
api.dashboard = true;
|
||||
};
|
||||
|
||||
dynamicConfigOptions.http = {
|
||||
routers.plain-html = {
|
||||
rule = "Host(`poggerer.xyz`)";
|
||||
entryPoints = ["websecure"];
|
||||
service = "plain-html";
|
||||
tls.certResolver = "letsencrypt";
|
||||
};
|
||||
|
||||
services.plain-html.loadBalancer.servers = [
|
||||
{url = "http://127.0.0.1:8080";}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue