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 = {
|
||||
mpv = {
|
||||
enable = true;
|
||||
|
|
@ -30,8 +35,8 @@
|
|||
ytdl = "yes";
|
||||
ytdl-format = "bestvideo+bestaudio";
|
||||
# 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=";
|
||||
ytdl-raw-options = "no-playlist=,cookies-from-browser=firefox,force-ipv4=";
|
||||
# ytdl-raw-options = "no-playlist=";
|
||||
};
|
||||
profiles = {
|
||||
utube = {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,11 @@
|
|||
{ inputs, outputs, lib, config, pkgs, ... }:
|
||||
let
|
||||
{
|
||||
inputs,
|
||||
outputs,
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
my-python-packages = python-packages:
|
||||
with python-packages; [
|
||||
pip
|
||||
|
|
@ -25,6 +31,7 @@ in {
|
|||
};
|
||||
imports = [
|
||||
../../home
|
||||
./services.nix
|
||||
./systemd.nix
|
||||
../vars.nix
|
||||
./upgrade-diff.nix
|
||||
|
|
@ -74,11 +81,13 @@ in {
|
|||
sudo.enable = false;
|
||||
doas = {
|
||||
enable = true;
|
||||
extraRules = [{
|
||||
extraRules = [
|
||||
{
|
||||
users = ["don"];
|
||||
keepEnv = true;
|
||||
noPass = true;
|
||||
}];
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
|
|
@ -202,14 +211,18 @@ in {
|
|||
|
||||
# allow the Tailscale UDP port through the firewall
|
||||
allowedUDPPorts = [config.services.tailscale.port];
|
||||
allowedTCPPortRanges = [{
|
||||
allowedTCPPortRanges = [
|
||||
{
|
||||
from = 1714;
|
||||
to = 1764;
|
||||
}];
|
||||
allowedUDPPortRanges = [{
|
||||
}
|
||||
];
|
||||
allowedUDPPortRanges = [
|
||||
{
|
||||
from = 1714;
|
||||
to = 1764;
|
||||
}];
|
||||
}
|
||||
];
|
||||
|
||||
# allow you to SSH in over the public internet
|
||||
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