This commit is contained in:
xqtc 2024-07-15 21:03:34 +02:00
parent d2556811cf
commit 80e5ab252a
7 changed files with 100 additions and 51 deletions

View file

@ -10,9 +10,9 @@
./sops.nix
];
#nixpkgs.config.permittedInsecurePackages = ["electron-25.9.0" "electron-24.8.6"];
# networking.hosts = {
# "192.168.178.35" = ["jellyfin.fritz.box" "grafana.fritz.box"];
# };
networking.hosts = {
"192.168.178.35" = ["jellyfin.fritz.box" "grafana.fritz.box"];
};
# environment.systemPackages = with pkgs; [
# xdg-desktop-portal-hyprland
# xdg-desktop-portal

View file

@ -18,7 +18,7 @@ with lib; {
./git.nix
./nextcloud.nix
./paperless.nix
./docker.nix
../../docker.nix
# ./borg.nix
# ./nfs.nix
# ../../gc.nix

View file

@ -58,6 +58,7 @@
calendar
notes
# previewgenerator
;
recognize = pkgs.fetchNextcloudApp {
sha256 = "sha256-hg8uY7cvdYnmEh6vKC36vkORDC+MSZA8lFqGQK2RbkE=";

View file

@ -8,12 +8,12 @@
imports = [
# Include the results of the hardware scan.
./hardware-configuration.nix
../../../modules/home-manager.nix
../../../common
inputs.nixos-hardware.nixosModules.common-cpu-intel
../../docker.nix
../../gc.nix
./jellyfin.nix
./rsync.nix
./monitoring.nix
];
nixpkgs.config.allowUnfree = true;
@ -78,11 +78,12 @@
# Define a user account. Don't forget to set a password with passwd.
users.users.xqtc = {
isNormalUser = true;
extraGroups = ["wheel"]; # Enable sudo for the user.
extraGroups = ["wheel" "docker"]; # Enable sudo for the user.
packages = with pkgs; [tree];
shell = pkgs.nushell;
# shell = pkgs.nushell;
};
programs.bash.blesh.enable = true;
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [
@ -102,21 +103,21 @@
networking.resolvconf.enable = false;
services.resolved.enable = true;
services.transmission = {
enable = true;
user = "xqtc";
#home = /home/xqtc/torrents/transmission-config;
downloadDirPermissions = "775";
settings = {
incomplete-dir-enabled = false;
#download-dir = /home/xqtc/torrents/jellyfin/staging;
rpc-bind-address = "0.0.0.0";
rpc-whitelist-enabled = "false";
rpc-authentication-required = "true";
rpc-username = "xqtc";
rpc-password = "Klavier2016";
};
};
# services.transmission = {
# enable = true;
# user = "xqtc";
# #home = /home/xqtc/torrents/transmission-config;
# downloadDirPermissions = "775";
# settings = {
# incomplete-dir-enabled = false;
# #download-dir = /home/xqtc/torrents/jellyfin/staging;
# rpc-bind-address = "0.0.0.0";
# rpc-whitelist-enabled = "false";
# rpc-authentication-required = "true";
# rpc-username = "xqtc";
# rpc-password = "Klavier2016";
# };
# };
services.mullvad-vpn = {
enable = true;
@ -154,7 +155,7 @@
services.openssh.enable = true;
# Open ports in the firewall.
networking.firewall.allowedTCPPorts = [22 8096 9091 5001];
networking.firewall.allowedTCPPorts = [22 8085 7878 7878 8989 9696];
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
# networking.firewall.enable = false;

View file

@ -0,0 +1,47 @@
{
config,
lib,
pkgs,
...
}: {
# systemd.services.rsync-movies = {
# description = "Rsync Movies to Remote Server";
# serviceConfig = {
# User = "xqtc";
# ExecStart = "${pkgs.rsync}/bin/rsync -a --ignore-existing /home/crime/radarr/movies/ xqtc@88.99.90.90:~/jellyfin/movies/";
# };
# };
# systemd.services.rsync-shows = {
# description = "Rsync Shows to Remote Server";
#
# serviceConfig = {
# User = "xqtc";
# ExecStart = "${pkgs.rsync}/bin/rsync -a --ignore-existing /home/crime/sonarr/movies/ xqtc@88.99.90.90:~/jellyfin/shows/";
# };
# };
#
# systemd.timers.rsync-shows = {
# description = "Run Rsync Movies Service";
# timerConfig = {
# OnCalendar = "daily";
# Persistent = true;
# };
# wantedBy = ["timers.target"];
# };
# systemd.timers.rsync-movies = {
# description = "Run Rsync Shows Service";
# timerConfig = {
# OnCalendar = "daily";
# Persistent = true;
# };
# wantedBy = ["timers.target"];
# };
# environment.systemPackages = with pkgs; [
# rsync
# openssh
# ];
services.rsync-movies = {
enable = true;
};
}