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 ]; 11 12 nix.settings.experimental-features = [ 13 "nix-command" 14 "flakes" 15 ]; 16 17 # Bootloader. 18 boot.loader.systemd-boot.enable = true; 19 boot.loader.efi.canTouchEfiVariables = true; 20 21 # Use latest kernel. 22 boot.kernelPackages = pkgs.linuxPackages_latest; 23 24 networking.hostName = "nixos"; # Define your hostname. 25 # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. 26 27 # Configure network proxy if necessary 28 # networking.proxy.default = "http://user:password@proxy:port/"; 29 # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain"; 30 31 # Enable networking 32 networking.networkmanager.enable = true; 33 34 # Set your time zone. 35 time.timeZone = "America/New_York"; 36 37 # Select internationalisation properties. 38 i18n.defaultLocale = "en_US.UTF-8"; 39 40 i18n.extraLocaleSettings = { 41 LC_ADDRESS = "en_US.UTF-8"; 42 LC_IDENTIFICATION = "en_US.UTF-8"; 43 LC_MEASUREMENT = "en_US.UTF-8"; 44 LC_MONETARY = "en_US.UTF-8"; 45 LC_NAME = "en_US.UTF-8"; 46 LC_NUMERIC = "en_US.UTF-8"; 47 LC_PAPER = "en_US.UTF-8"; 48 LC_TELEPHONE = "en_US.UTF-8"; 49 LC_TIME = "en_US.UTF-8"; 50 }; 51 52 programs.niri = { 53 enable = true; 54 package = pkgs.niri; 55 }; 56 57 services.greetd = { 58 enable = true; 59 settings = { 60 default_session = { 61 command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time --cmd niri-session"; 62 user = "greeter"; 63 }; 64 }; 65 }; 66 67 # xdg.portal = { 68 # enable = true; 69 # xdgOpenUsePortal = true; 70 # config = { 71 # common = { 72 # default = [ 73 # "gnome" 74 # "gtk" 75 # ]; 76 77 # "org.freedesktop.impl.portal.ScreenCast" = "gnome"; 78 # "org.freedesktop.impl.portal.Screenshot" = "gnome"; 79 # "org.freedesktop.impl.portal.RemoteDesktop" = "gnome"; 80 # }; 81 # }; 82 83 # # Specify the backends you want to use. 84 # # The order matters, the first one is the primary. 85 # extraPortals = with pkgs; [ 86 # xdg-desktop-portal-gtk 87 # xdg-desktop-portal-gnome 88 # ]; 89 # }; 90 91 # Enable CUPS to print documents. 92 services.printing.enable = true; 93 94 # Enable sound with pipewire. 95 security.polkit.enable = true; 96 security.rtkit.enable = true; 97 services.pipewire = { 98 enable = true; 99 alsa.enable = true; 100 alsa.support32Bit = true; 101 pulse.enable = true; 102 # If you want to use JACK applications, uncomment this 103 #jack.enable = true; 104 105 # use the example session manager (no others are packaged yet so this is enabled by default, 106 # no need to redefine it in your config for now) 107 #media-session.enable = true; 108 }; 109 110 services.udisks2.enable = true; 111 112 # Define a user account. Don't forget to set a password with ‘passwd’. 113 users.groups.storage = { }; 114 users.users.sean = { 115 isNormalUser = true; 116 description = "Sean Aye"; 117 extraGroups = [ 118 "networkmanager" 119 "wheel" 120 "video" 121 "disk" 122 "storage" 123 "input" 124 ]; 125 shell = pkgs.fish; 126 }; 127 128 programs.fish.enable = true; 129 programs._1password.enable = true; 130 programs._1password-gui = { 131 enable = true; 132 polkitPolicyOwners = [ "sean" ]; 133 }; 134 135 programs.steam = { 136 enable = true; 137 }; 138 139 # Allow unfree packages 140 nixpkgs.config.allowUnfree = true; 141 142 # List packages installed in system profile. To search, run: 143 # $ nix search wget 144 # environment.systemPackages = with pkgs; [ 145 # wl-clipboard 146 # ]; 147 environment.variables = { 148 EDITOR = "hx"; 149 VISUAL = "hx"; 150 SUDO_EDITOR = "hx"; 151 }; 152 153 # List services that you want to enable: 154 nixarr = { 155 enable = true; 156 vpn = { 157 enable = true; 158 wgConf = "/data/wireguard.conf"; 159 }; 160 161 jellyfin = { 162 enable = true; 163 openFirewall = true; 164 }; 165 166 transmission = { 167 enable = true; 168 vpn.enable = true; 169 }; 170 sabnzbd = { 171 enable = true; 172 vpn.enable = true; 173 openFirewall = true; 174 }; 175 176 prowlarr.enable = true; 177 radarr.enable = true; 178 sonarr.enable = true; 179 jellyseerr = { 180 enable = true; 181 openFirewall = true; 182 }; 183 184 recyclarr = { 185 enable = true; 186 configuration = { 187 sonarr = { 188 series = { 189 base_url = "http://localhost:8989"; 190 api_key = "!env_var SONARR_API_KEY"; 191 quality_definition = { 192 type = "series"; 193 }; 194 delete_old_custom_formats = true; 195 custom_formats = [ 196 { 197 trash_ids = [ 198 "85c61753df5da1fb2aab6f2a47426b09" # BR-DISK 199 "9c11cd3f07101cdba90a2d81cf0e56b4" # LQ 200 ]; 201 assign_scores_to = [ 202 { 203 name = "WEB-DL (1080p)"; 204 score = -10000; 205 } 206 ]; 207 } 208 ]; 209 }; 210 }; 211 radarr = { 212 movies = { 213 base_url = "http://localhost:7878"; 214 api_key = "!env_var RADARR_API_KEY"; 215 quality_definition = { 216 type = "movie"; 217 }; 218 delete_old_custom_formats = true; 219 custom_formats = [ 220 { 221 trash_ids = [ 222 "570bc9ebecd92723d2d21500f4be314c" # Remaster 223 "eca37840c13c6ef2dd0262b141a5482f" # 4K Remaster 224 ]; 225 assign_scores_to = [ 226 { 227 name = "HD Bluray + WEB"; 228 score = 25; 229 } 230 ]; 231 } 232 ]; 233 }; 234 }; 235 }; 236 }; 237 }; 238 239 # Enable the OpenSSH daemon. 240 # services.openssh.enable = true; 241 242 # Open ports in the firewall. 243 networking.firewall.allowedTCPPorts = [ 244 8096 245 5055 246 ]; 247 networking.firewall.allowedUDPPorts = [ 248 8096 249 5055 250 ]; 251 # Or disable the firewall altogether. 252 # networking.firewall.enable = false; 253 254 # This value determines the NixOS release from which the default 255 # settings for stateful data, like file locations and database versions 256 # on your system were taken. It‘s perfectly fine and recommended to leave 257 # this value at the release version of the first install of this system. 258 # Before changing this value read the documentation for this option 259 # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). 260 system.stateVersion = "25.05"; # Did you read the comment? 261 262}