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