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 ./sops.nix
]; ];
#nixpkgs.config.permittedInsecurePackages = ["electron-25.9.0" "electron-24.8.6"]; #nixpkgs.config.permittedInsecurePackages = ["electron-25.9.0" "electron-24.8.6"];
# networking.hosts = { networking.hosts = {
# "192.168.178.35" = ["jellyfin.fritz.box" "grafana.fritz.box"]; "192.168.178.35" = ["jellyfin.fritz.box" "grafana.fritz.box"];
# }; };
# environment.systemPackages = with pkgs; [ # environment.systemPackages = with pkgs; [
# xdg-desktop-portal-hyprland # xdg-desktop-portal-hyprland
# xdg-desktop-portal # xdg-desktop-portal

View file

@ -198,31 +198,31 @@
# " ░ " # " ░ "
# ]; # ];
val = [ val = [
" " " "
"" ""
"" ""
"" ""
"" ""
"" ""
"" ""
"" ""
"" ""
"" ""
"" ""
"" ""
"" ""
"" ""
"" ""
"" ""
"" ""
"" ""
"" ""
"" ""
"" ""
"" ""
"" ""
"" ""
" " " "
]; ];
#val = [ #val = [
# " ███████████████ ██████████████████" # " ███████████████ ██████████████████"

View file

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

View file

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

View file

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