me like nix
0

Configure Feed

Select the types of activity you want to include in your feed.

1{ 2 pkgs, 3 ... 4}: 5 6{ 7 imports = [ 8 # Include the results of the hardware scan. 9 ./hardware-configuration.nix 10 ../common/common.nix 11 ]; 12 13 networking.hostName = "mira"; # Define your hostname. 14 # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. 15 16 # Configure network proxy if necessary 17 # networking.proxy.default = "http://user:password@proxy:port/"; 18 # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain"; 19 20 services.openssh = { 21 enable = true; 22 ports = [ 5431 ]; 23 settings = { 24 PasswordAuthentication = false; 25 KbdInteractiveAuthentication = false; 26 PermitRootLogin = "no"; 27 AllowUsers = [ "sean" ]; 28 }; 29 }; 30 31 users.users.sean.openssh.authorizedKeys.keys = [ 32 "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDCIqgZ7kedxo+mOW7YG73Vp3zel3h180y3GKvHtRsXfGlpIIvRDy7pgCBQ4AGXYD4y78URQmFohYSAPqCPOPaWcU2un3XG9KvCzEsHmsbskPonitUmCiKvrKkb6oW4jCBtd7AEtBn+AiajAQFtPZ7NN2Df3AmTypvR6Irg7R+nxnfc9NTIHmGvxSDyWcbb4pguL20sctUSqGL6xGh8q/bqhdOThSimM+z9bEUNxK/5rPhwkNniMrp4pJcUrUiAh5/4DiRFG6KT+oeg+/myoz/Z1sPvAs7u/8JDQI4RshRD8Hu0oTkRBN6Hxj478q2SXbeBUZlD6IdjP3RhGpmSecoDdtWqKbpuV3eVRtQtba3KL86GBeV/bugaOdJ1Aud+1SOFJreAAuvxzMMKT+cdQZk6oOPP148DA/No+mDm/2S43lcdCXh79wA6YRAmKQ8jmZxTCtPutrvuZK1rguvvUlEoG/vhdNHh7eDa4Td07V6bjCRPUl8qk/e4M0E3pwsTlZc=" 33 ]; 34 35 programs.steam = { 36 enable = true; 37 }; 38 39 # List services that you want to enable: 40 nixarr = { 41 enable = true; 42 mediaDir = "/mnt/storage1/nixarr/media"; 43 vpn = { 44 enable = true; 45 wgConf = "/mnt/storage1/nixarr/wireguard.conf"; 46 }; 47 48 jellyfin = { 49 enable = true; 50 openFirewall = true; 51 }; 52 53 transmission = { 54 enable = true; 55 vpn.enable = true; 56 }; 57 sabnzbd = { 58 enable = true; 59 vpn.enable = true; 60 openFirewall = true; 61 }; 62 63 prowlarr.enable = true; 64 radarr.enable = true; 65 sonarr.enable = true; 66 jellyseerr = { 67 enable = true; 68 openFirewall = true; 69 }; 70 71 recyclarr = { 72 enable = true; 73 configuration = { 74 sonarr = { 75 series = { 76 base_url = "http://localhost:8989"; 77 api_key = "!env_var SONARR_API_KEY"; 78 quality_definition = { 79 type = "series"; 80 }; 81 delete_old_custom_formats = true; 82 custom_formats = [ 83 { 84 trash_ids = [ 85 "85c61753df5da1fb2aab6f2a47426b09" # BR-DISK 86 "9c11cd3f07101cdba90a2d81cf0e56b4" # LQ 87 ]; 88 assign_scores_to = [ 89 { 90 name = "WEB-DL (1080p)"; 91 score = -10000; 92 } 93 ]; 94 } 95 ]; 96 }; 97 }; 98 radarr = { 99 movies = { 100 base_url = "http://localhost:7878"; 101 api_key = "!env_var RADARR_API_KEY"; 102 quality_definition = { 103 type = "movie"; 104 }; 105 delete_old_custom_formats = true; 106 custom_formats = [ 107 { 108 trash_ids = [ 109 "570bc9ebecd92723d2d21500f4be314c" # Remaster 110 "eca37840c13c6ef2dd0262b141a5482f" # 4K Remaster 111 ]; 112 assign_scores_to = [ 113 { 114 name = "HD Bluray + WEB"; 115 score = 25; 116 } 117 ]; 118 } 119 ]; 120 }; 121 }; 122 }; 123 }; 124 }; 125 126 # Enable the OpenSSH daemon. 127 # services.openssh.enable = true; 128 129 # Open ports in the firewall. 130 networking.firewall.allowedTCPPorts = [ 131 8096 132 5055 133 3000 134 ]; 135 networking.firewall.allowedUDPPorts = [ 136 8096 137 5055 138 3000 139 ]; 140 141 # This value determines the NixOS release from which the default 142 # settings for stateful data, like file locations and database versions 143 # on your system were taken. It‘s perfectly fine and recommended to leave 144 # this value at the release version of the first install of this system. 145 # Before changing this value read the documentation for this option 146 # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). 147 system.stateVersion = "25.05"; # Did you read the comment? 148 149}