Compare commits

...

2 Commits

Author SHA1 Message Date
k
c183a0a551 Merge branch 'master' of https://git.dhilton.xyz/k/nixos_configs
Some checks failed
Verify Nix Flake / verify_build (push) Has been cancelled
2025-12-03 17:38:52 +00:00
k
c0a1f5495f current config 2025-12-03 17:38:31 +00:00
2 changed files with 31 additions and 20 deletions

View File

@ -30,7 +30,7 @@
users = { users = {
motd = "Welcome to the Server"; motd = "Welcome to the Server";
defaultUserShell = pkgs.nushell; defaultUserShell = pkgs.zsh;
users = { users = {
k = { k = {
isNormalUser = true; isNormalUser = true;
@ -48,16 +48,14 @@
}; };
}; };
home-manager = {users = {"k" = import ./home.nix;};}; home-manager = {
backupFileExtension = "bk";
users = {"k" = import ./home.nix;};
};
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
microcodeIntel microcodeIntel
firefox firefox
(pkgs.kodi.withPackages (kodiPkgs:
with kodiPkgs; [
jellyfin
youtube
]))
]; ];
hardware.bluetooth.enable = true; hardware.bluetooth.enable = true;

View File

@ -6,11 +6,33 @@
networking = { networking = {
firewall = { firewall = {
enable = true; enable = true;
allowedTCPPorts = [80 443 22 25565 26615 8080]; allowedTCPPorts = [80 443 22 25565 26615 8080 53 19132 ];
allowedUDPPorts = [26615 8080 1900]; allowedUDPPorts = [26615 8080 1900 51820 53 19132 ];
};
nat.externalInterface = "wlp0s20f3";
nat.internalInterfaces = [ "wg0" ];
wireguard.interfaces = {
wg0 = {
ips = ["10.0.0.1/24"];
listenPort = 51820;
privateKeyFile = "/keys/wg-private";
peers = [
{ # laptop
publicKey = "Ze2y3K+blI3aBc1AKTlvv90j+McBaitB+qSLazsuSFM=";
allowedIPs = ["10.0.0.2/32"];
}
{ # phone
publicKey = "vcheBoHRxCrwzbMw0UI9ZsQfVDJizBWkeM+pF5/8+HE=";
allowedIPs = ["10.0.0.3/32"];
}
];
};
}; };
}; };
networking.nat.enable = true;
security.acme = { security.acme = {
acceptTerms = true; acceptTerms = true;
defaults.email = "markers711@gmail.com"; defaults.email = "markers711@gmail.com";
@ -33,15 +55,6 @@
i2p = {enable = true;}; i2p = {enable = true;};
cockpit = {
enable = true;
allowed-origins = ["https://pit.dhilton.xyz"];
};
pulseaudio = {
enable = true;
};
nix-serve = { nix-serve = {
enable = true; enable = true;
secretKeyFile = "/var/cache-priv-key.pem"; secretKeyFile = "/var/cache-priv-key.pem";
@ -184,11 +197,11 @@
}; };
}; };
"pit.dhilton.xyz" = { "map.dhilton.xyz" = {
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;
locations."/" = { locations."/" = {
proxyPass = "http://127.0.0.1:9090"; proxyPass = "http://127.0.0.1:8100";
proxyWebsockets = true; proxyWebsockets = true;
}; };
}; };