home/gui | mpv - utube being utube
This commit is contained in:
parent
e23cc7b874
commit
7ed4afdf9d
3 changed files with 64 additions and 37 deletions
|
|
@ -1,4 +1,9 @@
|
||||||
{ ... }: {
|
{
|
||||||
|
inputs,
|
||||||
|
outputs,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
programs = {
|
programs = {
|
||||||
mpv = {
|
mpv = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
@ -30,8 +35,8 @@
|
||||||
ytdl = "yes";
|
ytdl = "yes";
|
||||||
ytdl-format = "bestvideo+bestaudio";
|
ytdl-format = "bestvideo+bestaudio";
|
||||||
# Only needed when/if youtube blocks annon access again
|
# Only needed when/if youtube blocks annon access again
|
||||||
# ytdl-raw-options = "no-playlist=,cookies-from-browser=firefox,force-ipv4=";
|
ytdl-raw-options = "no-playlist=,cookies-from-browser=firefox,force-ipv4=";
|
||||||
ytdl-raw-options = "no-playlist=";
|
# ytdl-raw-options = "no-playlist=";
|
||||||
};
|
};
|
||||||
profiles = {
|
profiles = {
|
||||||
utube = {
|
utube = {
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,11 @@
|
||||||
{ inputs, outputs, lib, config, pkgs, ... }:
|
{
|
||||||
let
|
inputs,
|
||||||
|
outputs,
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
my-python-packages = python-packages:
|
my-python-packages = python-packages:
|
||||||
with python-packages; [
|
with python-packages; [
|
||||||
pip
|
pip
|
||||||
|
|
@ -25,6 +31,7 @@ in {
|
||||||
};
|
};
|
||||||
imports = [
|
imports = [
|
||||||
../../home
|
../../home
|
||||||
|
./services.nix
|
||||||
./systemd.nix
|
./systemd.nix
|
||||||
../vars.nix
|
../vars.nix
|
||||||
./upgrade-diff.nix
|
./upgrade-diff.nix
|
||||||
|
|
@ -74,11 +81,13 @@ in {
|
||||||
sudo.enable = false;
|
sudo.enable = false;
|
||||||
doas = {
|
doas = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extraRules = [{
|
extraRules = [
|
||||||
|
{
|
||||||
users = ["don"];
|
users = ["don"];
|
||||||
keepEnv = true;
|
keepEnv = true;
|
||||||
noPass = true;
|
noPass = true;
|
||||||
}];
|
}
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -202,14 +211,18 @@ in {
|
||||||
|
|
||||||
# allow the Tailscale UDP port through the firewall
|
# allow the Tailscale UDP port through the firewall
|
||||||
allowedUDPPorts = [config.services.tailscale.port];
|
allowedUDPPorts = [config.services.tailscale.port];
|
||||||
allowedTCPPortRanges = [{
|
allowedTCPPortRanges = [
|
||||||
|
{
|
||||||
from = 1714;
|
from = 1714;
|
||||||
to = 1764;
|
to = 1764;
|
||||||
}];
|
}
|
||||||
allowedUDPPortRanges = [{
|
];
|
||||||
|
allowedUDPPortRanges = [
|
||||||
|
{
|
||||||
from = 1714;
|
from = 1714;
|
||||||
to = 1764;
|
to = 1764;
|
||||||
}];
|
}
|
||||||
|
];
|
||||||
|
|
||||||
# allow you to SSH in over the public internet
|
# allow you to SSH in over the public internet
|
||||||
allowedTCPPorts = [22];
|
allowedTCPPorts = [22];
|
||||||
|
|
|
||||||
9
hosts/pi-server/services.nix
Normal file
9
hosts/pi-server/services.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
{...}: {
|
||||||
|
services = {
|
||||||
|
wlsunset = {
|
||||||
|
enable = true;
|
||||||
|
latitude = 29.74;
|
||||||
|
longitude = 95.77;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue