From 6bf1a11bd8b098b36aa537ea5f4cbf9228409ca0 Mon Sep 17 00:00:00 2001 From: Henrik Lutzmann Date: Wed, 25 Dec 2024 22:50:30 +0100 Subject: [PATCH] Dateien nach "wlin003_GamingPC/home" hochladen --- wlin003_GamingPC/home/config-profile.nix | 12 ++ wlin003_GamingPC/home/config-rsync.nix | 48 ++++++ wlin003_GamingPC/home/config-ssh.nix | 180 +++++++++++++++++++++++ wlin003_GamingPC/home/default.nix | 14 ++ 4 files changed, 254 insertions(+) create mode 100644 wlin003_GamingPC/home/config-profile.nix create mode 100644 wlin003_GamingPC/home/config-rsync.nix create mode 100644 wlin003_GamingPC/home/config-ssh.nix create mode 100644 wlin003_GamingPC/home/default.nix diff --git a/wlin003_GamingPC/home/config-profile.nix b/wlin003_GamingPC/home/config-profile.nix new file mode 100644 index 0000000..5e026cf --- /dev/null +++ b/wlin003_GamingPC/home/config-profile.nix @@ -0,0 +1,12 @@ +{ config, pkgs, ... }: + +{ + + home.file = { + ".profile" = { + text = '' + export GTK_THEME=Arc-Dark + ''; + }; + }; +} diff --git a/wlin003_GamingPC/home/config-rsync.nix b/wlin003_GamingPC/home/config-rsync.nix new file mode 100644 index 0000000..4dc2f8e --- /dev/null +++ b/wlin003_GamingPC/home/config-rsync.nix @@ -0,0 +1,48 @@ +{ config, pkgs, ... }: + +{ + + home.file = { + ".rsync-exlude" = { + text = '' + - Downloads + - Games + - Share-Cloud + - Share-Priv + - Share-SMB + - Share-VM + - Sync + - VM-Image + - Code Cache + - cache* + - Cache* + - Cache_* + - *_cache + - *Cache + - DawnGraphiteCache + - log* + - logs + - tmp + - Trash + + .config + - .config/syncthing + - .config/unity3d + - .config/ownCloud + + .local + - .local/state + - .local/share/containers + - .local/share/flatpak + - .local/share/keyrings + - .local/share/nomic.ai + - .local/share/Steam + + .jd2 + + .conkyrc + - .* + - *.LOG + - LOG + - *.old + ''; + }; + }; + +} diff --git a/wlin003_GamingPC/home/config-ssh.nix b/wlin003_GamingPC/home/config-ssh.nix new file mode 100644 index 0000000..e335cef --- /dev/null +++ b/wlin003_GamingPC/home/config-ssh.nix @@ -0,0 +1,180 @@ +{ config, pkgs, ... }: + +{ + + programs.ssh = { + enable = true; + matchBlocks = { + + ### Network Hosts ### + htpc01 = { + hostname = "htpc01.local"; + user = "kodi"; + port = 22; + # identityFile = "~/.ssh/id_rsa.pub"; + }; + + nas = { + hostname = "192.168.20.90"; + user = "root"; + port = 22; + }; + + pve01 = { + hostname = "192.168.10.50"; + user = "root"; + port = 22; + }; + + ### Proxmox PVE01 LAN ### + pfsense = { + hostname = "192.168.10.1"; + user = "admin"; + port = 22; + }; + + opnsense = { + hostname = "192.168.10.1"; + user = "root"; + port = 22; + }; + + fileserver01 = { + hostname = "192.168.10.52"; + user = "root"; + port = 22; + }; + + checkmk = { + hostname = "192.168.50.53"; + user = "root"; + port = 22; + }; + + pbs01 = { + hostname = "192.168.10.54"; + user = "root"; + port = 22; + }; + + docker-lan = { + hostname = "192.168.10.55"; + user = "root"; + port = 22; + }; + + jdownloader = { + hostname = "192.168.10.57"; + user = "root"; + port = 22; + }; + + vserver01 = { + hostname = "192.168.10.180"; + user = "root"; + port = 22; + }; + + adgurd = { + hostname = "192.168.178.10"; + user = "root"; + port = 22; + }; + + ### Proxmox PVE01 DMZ ### + aptcache = { + hostname = "192.168.50.10"; + user = "root"; + port = 22; + }; + + docker-dmz = { + hostname = "192.168.50.11"; + user = "root"; + port = 22; + }; + + rustdesk = { + hostname = "192.168.50.12"; + user = "root"; + port = 22; + }; + + radicale = { + hostname = "192.168.50.13"; + user = "root"; + port = 22; + }; + + mumble = { + hostname = "192.168.50.14"; + user = "root"; + port = 22; + }; + + meet = { + hostname = "192.168.50.15"; + user = "root"; + port = 22; + }; + + mail = { + hostname = "192.168.50.16"; + user = "root"; + port = 22; + }; + + freshrss = { + hostname = "192.168.50.17"; + user = "root"; + port = 22; + }; + + owncloud = { + hostname = "192.168.50.18"; + user = "root"; + port = 22; + }; + + websrv01 = { + hostname = "192.168.50.19"; + user = "root"; + port = 22; + }; + + websrv02 = { + hostname = "192.168.50.20"; + user = "root"; + port = 22; + }; + + gitea = { + hostname = "192.168.50.21"; + user = "root"; + port = 22; + }; + + ### Proxmox PVE01 IOT ### + jellyfin = { + hostname = "192.168.60.20"; + user = "root"; + port = 22; + }; + + ### Proxmox PVE01 VPN ### + seedbox = { + hostname = "192.168.20.10"; + user = "root"; + port = 22; + }; + + ### Internet Hosts ### + strato = { + hostname = "85.215.43.109"; + user = "root"; + port = 63007; + }; + }; + }; + +} diff --git a/wlin003_GamingPC/home/default.nix b/wlin003_GamingPC/home/default.nix new file mode 100644 index 0000000..8c91f7d --- /dev/null +++ b/wlin003_GamingPC/home/default.nix @@ -0,0 +1,14 @@ +{ pkgs, config, ... }: + +{ + imports = [ + # Enable &/ Configure Programs + ./config-profile.nix + ./config-rsync.nix + ./config-ssh.nix + + # Place Home Files Like Pictures + #./files.nix + ]; + +}