aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorspl3g <spleefer6@yandex.ru>2025-08-24 00:38:28 +0500
committerspl3g <spleefer6@yandex.ru>2025-08-24 00:52:43 +0500
commite9d70f9e9377c3bcbbf7dda26b9dfd14193e5f64 (patch)
treed014e8a4b8310435c83b008b75041aa834be1e5c
parentd11e33bc968e556c38d43a3cc35a52980d8024b8 (diff)
feat(home): cleanup the config
-rw-r--r--nixos/server/configuration.nix42
1 files changed, 8 insertions, 34 deletions
diff --git a/nixos/server/configuration.nix b/nixos/server/configuration.nix
index 75dcec7..1732641 100644
--- a/nixos/server/configuration.nix
+++ b/nixos/server/configuration.nix
@@ -18,7 +18,7 @@
nixpkgs.config.allowUnfree = true;
sops = {
- defaultSopsFile = ../../secrets/ltrr-server/secrets.yaml;
+ defaultSopsFile = ../../secrets/ltrr-home/secrets.yaml;
defaultSopsFormat = "yaml";
age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
};
@@ -60,7 +60,7 @@
];
};
- networking.hostName = "ltrr-server";
+ networking.hostName = "ltrr-home";
networking.firewall = {
allowedTCPPorts = [ 80 5030 2049 ];
allowedUDPPorts = [ 51820 ];
@@ -94,7 +94,9 @@
};
- sops.secrets.wg_private_key = {};
+ sops.secrets.wg_private_key = {
+ restartUnits = ["wg-quick-wg0.service"];
+ };
networking.wg-quick = {
interfaces.wg0 = {
address = [ "10.1.1.2/32" ];
@@ -104,7 +106,7 @@
peers = [
{
- endpoint = "147.45.40.6:51820";
+ endpoint = "kcu.su:51820";
publicKey = "1RwEOL8br97Mujhz3fkfYKcxUFNHYAmt5JbWTbR3ihE=";
allowedIPs = ["10.1.1.1/32"];
persistentKeepalive = 25;
@@ -113,15 +115,8 @@
};
};
- # services.opencloud = {
- # enable = true;
- # group = "files";
- # url = "https://cloud.kcu.su";
- # environment = {
- # OC_INSECURE = "true";
- # PROXY_TLS = "false";
- # };
- # };
+
+ services.tailscale.enable = true;
users.users.filebrowser.extraGroups = [ "music" "images" ];
services.filebrowser = {
@@ -163,27 +158,6 @@
"/opt/traggo/data:/opt/traggo/data"
];
};
-
- nfs.server = {
- enable = true;
- defaultExportIps = ["10.1.1.0/24"];
-
- exportDirs = [
- {path = "/srv/files/music";}
- ];
- };
- services.nfs.idmapd = {
- settings = {
- General = {
- Domain = "kcu.su";
- };
- Mapping = {
- Nobody-User = "nobody";
- Nobody-Group = "nogroup";
- };
- };
- };
system.stateVersion = "24.05";
}
-