my nix configs for my servers and desktop

garage and forgejo fixes

Changed files
+12 -11
hosts
valefar
modules
forgejo
garage
+5 -5
hosts/valefar/default.nix
··· 20 ../../common/efi.nix 21 22 # Hardware-specific (commented out) 23 - # ../../common/nvidia.nix 24 ]; 25 26 # ============================================================================= ··· 29 system.stateVersion = "24.11"; 30 nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; 31 32 - # Intel microcode updates 33 - hardware.cpu.intel.updateMicrocode = lib.mkDefault 34 config.hardware.enableRedistributableFirmware; 35 36 # ============================================================================= ··· 150 "d /storage/immich/photos 0755 immich immich -" 151 "Z /storage/immich 0755 immich immich -" 152 "d /storage/tm_share 0755 regent users" 153 ]; 154 155 # ============================================================================= ··· 269 # ============================================================================= 270 # VIRTUAL MACHINES 271 # ============================================================================= 272 - systemd.services."microvm@".after = [ "microvm-virtiofsd@%i.service" ]; 273 274 microvm.vms = { 275 gameservers = { ··· 279 280 microvm.autostart = [ 281 "gameservers" 282 - ]; 283 }
··· 20 ../../common/efi.nix 21 22 # Hardware-specific (commented out) 23 + ../../common/nvidia.nix 24 ]; 25 26 # ============================================================================= ··· 29 system.stateVersion = "24.11"; 30 nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; 31 32 + hardware.cpu.amd.updateMicrocode = lib.mkDefault 33 config.hardware.enableRedistributableFirmware; 34 35 # ============================================================================= ··· 149 "d /storage/immich/photos 0755 immich immich -" 150 "Z /storage/immich 0755 immich immich -" 151 "d /storage/tm_share 0755 regent users" 152 + "Z /garage/ 0755 garage garage -" 153 ]; 154 155 # ============================================================================= ··· 269 # ============================================================================= 270 # VIRTUAL MACHINES 271 # ============================================================================= 272 + /*systemd.services."microvm@".after = [ "microvm-virtiofsd@%i.service" ]; 273 274 microvm.vms = { 275 gameservers = { ··· 279 280 microvm.autostart = [ 281 "gameservers" 282 + ];*/ 283 }
+3 -2
modules/forgejo/default.nix
··· 37 SSH_LISTEN_PORT = 2222; 38 SSH_PORT = 2222; 39 START_SSH_SERVER = true; 40 }; 41 - # service.DISABLE_REGISTRATION = true; 42 actions = { 43 ENABLED = true; 44 DEFAULT_ACTIONS_URL = "github"; ··· 46 }; 47 }; 48 }; 49 - }
··· 37 SSH_LISTEN_PORT = 2222; 38 SSH_PORT = 2222; 39 START_SSH_SERVER = true; 40 + SSH_DOMAIN = "sgit.nekomimi.pet"; 41 }; 42 + service.DISABLE_REGISTRATION = true; 43 actions = { 44 ENABLED = true; 45 DEFAULT_ACTIONS_URL = "github"; ··· 47 }; 48 }; 49 }; 50 + }
+4 -4
modules/garage/default.nix
··· 16 config = mkIf cfg.enable { 17 services.garage = { 18 enable = true; 19 - package = pkgs.garage; 20 settings = { 21 metadata_dir = "/garage/metadata"; 22 data_dir = "/garage/data"; 23 db_engine = "lmdb"; 24 - replication_mode = "2"; 25 rpc_bind_addr = "[::]:3901"; 26 rpc_public_addr = "${config.networking.hostName}:3901"; 27 rpc_secret_file = config.age.secrets."garage-rpc-secret".path; ··· 41 metrics_token_file = config.age.secrets."garage-metrics-token".path; 42 }; 43 bootstrap_peers = [ 44 - "d548d0c9ae9aec9e26fe0bd2ca3efe75f654fa350bad5cb02bc9aebc9850ba8f@[2a04:52c0:135:48d1::2]:3901" # buer 45 - "5504cb25910dcef4a4312006691d651c099cde7c3a88df9ca79aa350571e6e65@[2601:5c2:8400:26c0:4ecc:6aff:fef7:98ca]:3901" #valefar 46 ]; 47 }; 48 };
··· 16 config = mkIf cfg.enable { 17 services.garage = { 18 enable = true; 19 + package = pkgs.garage_2; 20 settings = { 21 metadata_dir = "/garage/metadata"; 22 data_dir = "/garage/data"; 23 db_engine = "lmdb"; 24 + replication_factor = 2; 25 rpc_bind_addr = "[::]:3901"; 26 rpc_public_addr = "${config.networking.hostName}:3901"; 27 rpc_secret_file = config.age.secrets."garage-rpc-secret".path; ··· 41 metrics_token_file = config.age.secrets."garage-metrics-token".path; 42 }; 43 bootstrap_peers = [ 44 + "d548d0c9ae9aec9e26fe0bd2ca3efe75f654fa350bad5cb02bc9aebc9850ba8f@[buer]:3901" 45 + "5504cb25910dcef4a4312006691d651c099cde7c3a88df9ca79aa350571e6e65@[valefar]:3901" 46 ]; 47 }; 48 };