mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-06-08 18:09:06 +02:00
More refactoring
This commit is contained in:
parent
18b7795c15
commit
91aea7e1e1
7 changed files with 117 additions and 218 deletions
|
@ -1,64 +0,0 @@
|
|||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||
# and may be overwritten by future invocations. Please make changes
|
||||
# to /etc/nixos/configuration.nix instead.
|
||||
{ config, lib, pkgs, modulesPath, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[
|
||||
(modulesPath + "/profiles/qemu-guest.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "sd_mod" "sr_mod" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/eaec3978-f462-4634-95e6-06d59512deb8";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/boot" =
|
||||
{ device = "/dev/disk/by-uuid/EAD2-51DB";
|
||||
fsType = "vfat";
|
||||
};
|
||||
|
||||
swapDevices =
|
||||
[ { device = "/dev/disk/by-uuid/c19ec918-ba8c-4bab-9ee0-831465cb432e"; }
|
||||
];
|
||||
|
||||
nix.maxJobs = lib.mkDefault 8;
|
||||
|
||||
# Specific to lisa but not hardware
|
||||
|
||||
|
||||
# Use the systemd-boot EFI boot loader.
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
luj.mediaserver.enable = true;
|
||||
networking.hostName = "lisa"; # Define your hostname.
|
||||
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
||||
|
||||
# The global useDHCP flag is deprecated, therefore explicitly set to false here.
|
||||
# Per-interface useDHCP will be mandatory in the future, so this generated config
|
||||
# replicates the default behaviour.
|
||||
networking.useDHCP = false;
|
||||
networking.interfaces.ens18.useDHCP = true;
|
||||
networking.interfaces.ens19.useDHCP = false;
|
||||
networking.interfaces.ens19.ipv6.addresses = [ {
|
||||
address = "2a01:e0a:5f9:9681:5880:c9ff:fe9f:3dfb";
|
||||
prefixLength = 120;
|
||||
} ];
|
||||
|
||||
networking.firewall.allowedTCPPorts = [22 80 443 8096 8920];
|
||||
networking.firewall.allowedUDPPorts = [22 80 443 1900 7359];
|
||||
networking.firewall.allowedUDPPortRanges = [ { from = 60000; to = 61000;}];
|
||||
|
||||
|
||||
system.stateVersion = "20.09"; # Did you read the comment?
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
|
@ -1,121 +0,0 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
|
||||
services.jellyfin = {
|
||||
enable = true;
|
||||
group = "tv";
|
||||
package = pkgs.jellyfin;
|
||||
};
|
||||
|
||||
services.sonarr = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
group = "tv";
|
||||
};
|
||||
|
||||
services.radarr = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
group = "tv";
|
||||
};
|
||||
|
||||
services.transmission = {
|
||||
enable = true;
|
||||
group = "tv";
|
||||
downloadDirPermissions = "774";
|
||||
settings = {
|
||||
rpc-port = 9091;
|
||||
download-dir = "/home/transmission/Downloads/";
|
||||
incomplete-dir = "/home/transmission/Incomplete/";
|
||||
incomplete-dir-enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
services.jackett = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
};
|
||||
|
||||
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
|
||||
virtualHosts."julienmalka.me" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
root = "/var/www/julienmalka.me";
|
||||
default = true;
|
||||
};
|
||||
|
||||
virtualHosts."www.julienmalka.me" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
root = "/var/www/julienmalka.me";
|
||||
};
|
||||
|
||||
virtualHosts."tv.julienmalka.me" = {
|
||||
addSSL = true;
|
||||
enableACME = true;
|
||||
locations."/" = {
|
||||
proxyPass = "http://localhost:8096";
|
||||
};
|
||||
};
|
||||
|
||||
virtualHosts."series.julienmalka.me" = {
|
||||
addSSL = true;
|
||||
enableACME = true;
|
||||
locations."/" = {
|
||||
proxyPass = "http://localhost:8989";
|
||||
};
|
||||
};
|
||||
|
||||
virtualHosts."downloads.julienmalka.me" = {
|
||||
addSSL = true;
|
||||
enableACME = true;
|
||||
locations."/" = {
|
||||
proxyPass = "http://localhost:9091";
|
||||
};
|
||||
};
|
||||
|
||||
virtualHosts."jackett.julienmalka.me" = {
|
||||
addSSL = true;
|
||||
enableACME = true;
|
||||
locations."/" = {
|
||||
proxyPass = "http://localhost:9117";
|
||||
};
|
||||
};
|
||||
|
||||
virtualHosts."films.julienmalka.me" = {
|
||||
addSSL = true;
|
||||
enableACME = true;
|
||||
locations."/" = {
|
||||
proxyPass = "http://localhost:7878";
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
security.acme.certs = {
|
||||
"www.julienmalka.me".email = "julien.malka@me.com";
|
||||
"julienmalka.me".email = "julien.malka@me.com";
|
||||
"tv.julienmalka.me".email = "julien.malka@me.com";
|
||||
"series.julienmalka.me".email = "julien.malka@me.com";
|
||||
"downloads.julienmalka.me".email = "julien.malka@me.com";
|
||||
"jackett.julienmalka.me".email = "julien.malka@me.com";
|
||||
"films.julienmalka.me".email = "julien.malka@me.com";
|
||||
};
|
||||
|
||||
security.acme.acceptTerms = true;
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue