Compare commits
2 Commits
c1360e5c2c
...
aa3a881d58
| Author | SHA1 | Date | |
|---|---|---|---|
|
aa3a881d58
|
|||
|
7f99b73635
|
@ -38,7 +38,7 @@
|
|||||||
# sha256 = "sha256-Gq9klAMXk+SHb7C6z6apErVRz0PB5jyADfixqGZyDDc=";
|
# sha256 = "sha256-Gq9klAMXk+SHb7C6z6apErVRz0PB5jyADfixqGZyDDc=";
|
||||||
# };
|
# };
|
||||||
# });
|
# });
|
||||||
|
#
|
||||||
# rich_14_2_0 = pkgs.python313Packages.rich.overridePythonAttrs (old: {
|
# rich_14_2_0 = pkgs.python313Packages.rich.overridePythonAttrs (old: {
|
||||||
# version = "14.2.0";
|
# version = "14.2.0";
|
||||||
# src = pkgs.python313Packages.fetchPypi {
|
# src = pkgs.python313Packages.fetchPypi {
|
||||||
@ -49,22 +49,12 @@
|
|||||||
# doCheck = false;
|
# doCheck = false;
|
||||||
# });
|
# });
|
||||||
|
|
||||||
# rich_14_2_0 = pkgs.python313Packages.rich.overridePythonAttrs (old: {
|
|
||||||
# version = "14.2.0";
|
|
||||||
# src = pkgs.fetchFromGitHub {
|
|
||||||
# owner = "Textualize";
|
|
||||||
# repo = "rich";
|
|
||||||
# tag = "v14.2.0";
|
|
||||||
# hash = "sha256-oQbxRbZnVr/Ln+i/hpBw5FlpUp3gcp/7xsxi6onPkn8=";
|
|
||||||
# };
|
|
||||||
# });
|
|
||||||
|
|
||||||
tidalDlNg = pythonPkgs.buildPythonApplication rec {
|
tidalDlNg = pythonPkgs.buildPythonApplication rec {
|
||||||
pname = "tidal-dl-ng";
|
pname = "tidal_dl_ng";
|
||||||
version = "0.31.3";
|
version = "0.33.0";
|
||||||
format = "pyproject";
|
format = "pyproject";
|
||||||
|
|
||||||
# TODO: The official repo was deleted, find the new one once it pops up
|
# The official repo was deleted
|
||||||
# src = pkgs.fetchFromGitHub {
|
# src = pkgs.fetchFromGitHub {
|
||||||
# owner = "exislow";
|
# owner = "exislow";
|
||||||
# repo = "tidal-dl-ng";
|
# repo = "tidal-dl-ng";
|
||||||
@ -72,14 +62,22 @@
|
|||||||
# sha256 = "sha256-PUT0anx1yivgXwW21jah7Rv1/BabOT+KPoW446NFNyg=";
|
# sha256 = "sha256-PUT0anx1yivgXwW21jah7Rv1/BabOT+KPoW446NFNyg=";
|
||||||
# };
|
# };
|
||||||
|
|
||||||
src = pkgs.fetchFromGitHub {
|
# Alternative repo
|
||||||
owner = "rodvicj";
|
# src = pkgs.fetchFromGitHub {
|
||||||
repo = "tidal_dl_ng-Project";
|
# owner = "rodvicj";
|
||||||
rev = "4573142c76ef045ebf8e80c34657dd2bec96f17d";
|
# repo = "tidal_dl_ng-Project";
|
||||||
sha256 = "sha256-3sO2qj8V4KXOWK7vQsFAOYeTZo2rsc/M36SwRnC0oVg=";
|
# rev = "4573142c76ef045ebf8e80c34657dd2bec96f17d";
|
||||||
|
# sha256 = "sha256-3sO2qj8V4KXOWK7vQsFAOYeTZo2rsc/M36SwRnC0oVg=";
|
||||||
|
# };
|
||||||
|
|
||||||
|
# Package is still on PyPi
|
||||||
|
src = pythonPkgs.fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "sha256-rOMyxnT7uVnMbn678DFtqAu4+Uc5VFGcqGI0jxplnpc=";
|
||||||
};
|
};
|
||||||
|
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
dontCheckRuntimeDeps = true;
|
||||||
catchConflicts = false;
|
catchConflicts = false;
|
||||||
strictDeps = false;
|
strictDeps = false;
|
||||||
|
|
||||||
|
|||||||
@ -141,7 +141,7 @@
|
|||||||
jellyfin-desktop
|
jellyfin-desktop
|
||||||
jellyfin-mpv-shim
|
jellyfin-mpv-shim
|
||||||
# tidal-hifi
|
# tidal-hifi
|
||||||
# tidal-dl-ng # TODO: Borked
|
tidal-dl-ng # TODO: Borked
|
||||||
picard
|
picard
|
||||||
handbrake
|
handbrake
|
||||||
teamspeak6-client
|
teamspeak6-client
|
||||||
|
|||||||
@ -85,6 +85,9 @@
|
|||||||
ip,
|
ip,
|
||||||
router,
|
router,
|
||||||
nameserver ? "8.8.8.8;8.8.4.4;",
|
nameserver ? "8.8.8.8;8.8.4.4;",
|
||||||
|
ip6,
|
||||||
|
router6,
|
||||||
|
nameserver6 ? "2001:4860:4860::8888;2001:4860:4860::8844;",
|
||||||
autoconnect ? true,
|
autoconnect ? true,
|
||||||
priority ? 0,
|
priority ? 0,
|
||||||
}: {
|
}: {
|
||||||
@ -103,7 +106,12 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
ipv6 = {
|
ipv6 = {
|
||||||
method = "disabled";
|
method = "auto";
|
||||||
|
addr-gen-mode = "stable-privacy";
|
||||||
|
ignore-auto-dns = "true";
|
||||||
|
address1 = ip6;
|
||||||
|
gateway = router6;
|
||||||
|
dns = nameserver6;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@ -27,23 +27,65 @@
|
|||||||
useNetworkManager = true;
|
useNetworkManager = true;
|
||||||
|
|
||||||
# Systemd-networkd configs
|
# Systemd-networkd configs
|
||||||
networks = {
|
networks = let
|
||||||
|
# TODO: mylib.networking.mkStaticSystemdNetwork needs improvement to accomodate for this
|
||||||
|
mkConfig = name: routable: rec {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
# See man systemd.link, man systemd.netdev, man systemd.network
|
||||||
|
matchConfig = {
|
||||||
|
# This corresponds to the [MATCH] section
|
||||||
|
Name = name; # Match ethernet interface
|
||||||
|
};
|
||||||
|
|
||||||
|
# Static IP + DNS + Gateway
|
||||||
|
address = ["192.168.86.50/24"];
|
||||||
|
gateway = ["192.168.86.5"]; # Don't add "fd00::5", rely on router advertisement instead
|
||||||
|
dns = ["129.168.86.26" "fd00::1a" "8.8.8.8" "8.8.4.4" "2001:4860:4860::8888" "2001:4860:4860::8844"];
|
||||||
|
routes = builtins.map (r: {Gateway = r;}) gateway;
|
||||||
|
|
||||||
|
# See man systemd.network
|
||||||
|
networkConfig = {
|
||||||
|
# This corresponds to the [NETWORK] section
|
||||||
|
DHCP = "no";
|
||||||
|
|
||||||
|
IPv6AcceptRA = "yes"; # Accept Router Advertisements
|
||||||
|
# MulticastDNS = "no";
|
||||||
|
# LLMNR = "no";
|
||||||
|
# LinkLocalAddressing = "ipv6";
|
||||||
|
};
|
||||||
|
|
||||||
|
addresses = [
|
||||||
|
{
|
||||||
|
# Don't add this to address, we don't want to create any routes with this
|
||||||
|
Address = "fd00::32/64"; # IPv6 Unique-Local Address (ULA)
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
linkConfig = {
|
||||||
|
# This corresponds to the [LINK] section
|
||||||
|
RequiredForOnline = routable;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
in {
|
||||||
|
# "10-ether-2_5G" = mylib.networking.mkStaticSystemdNetwork {
|
||||||
|
# interface = "enp8s0";
|
||||||
|
# ips = ["192.168.86.50/24"];
|
||||||
|
# routers = ["192.168.86.5"];
|
||||||
|
# nameservers = ["192.168.86.26" "8.8.8.8"];
|
||||||
|
# routable = true;
|
||||||
|
# };
|
||||||
|
# "10-ether-1G" = mylib.networking.mkStaticSystemdNetwork {
|
||||||
|
# interface = "enp5s0";
|
||||||
|
# ips = ["192.168.86.50/24"];
|
||||||
|
# routers = ["192.168.86.5"];
|
||||||
|
# nameservers = ["192.168.86.26" "8.8.8.8"];
|
||||||
|
# routable = false;
|
||||||
|
# };
|
||||||
|
|
||||||
# This should override the default network 50-ether
|
# This should override the default network 50-ether
|
||||||
"10-ether-2_5G" = mylib.networking.mkStaticSystemdNetwork {
|
"10-ether-1G" = mkConfig "enp5s0" "no";
|
||||||
interface = "enp8s0";
|
"10-ether-2_5G" = mkConfig "enp8s0" "routable";
|
||||||
ips = ["192.168.86.50/24"];
|
|
||||||
routers = ["192.168.86.5"];
|
|
||||||
nameservers = ["192.168.86.26" "8.8.8.8"];
|
|
||||||
routable = true;
|
|
||||||
};
|
|
||||||
"10-ether-1G" = mylib.networking.mkStaticSystemdNetwork {
|
|
||||||
interface = "enp5s0";
|
|
||||||
ips = ["192.168.86.50/24"];
|
|
||||||
routers = ["192.168.86.5"];
|
|
||||||
nameservers = ["192.168.86.26" "8.8.8.8"];
|
|
||||||
routable = false;
|
|
||||||
};
|
|
||||||
# "10-ether-1G" = mylib.networking.mkStaticSystemdNetwork {...};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# NetworkManager profiles
|
# NetworkManager profiles
|
||||||
@ -56,6 +98,9 @@
|
|||||||
ip = "192.168.86.50/24";
|
ip = "192.168.86.50/24";
|
||||||
router = "192.168.86.5";
|
router = "192.168.86.5";
|
||||||
nameserver = "192.168.86.26;8.8.8.8;";
|
nameserver = "192.168.86.26;8.8.8.8;";
|
||||||
|
ip6 = "fd00::32/64";
|
||||||
|
router6 = "fd00::5";
|
||||||
|
nameserver6 = "2001:4860:4860::8888;2001:4860:4860::8844;";
|
||||||
priority = 10; # Rather connect to 2.5G than to 1G
|
priority = 10; # Rather connect to 2.5G than to 1G
|
||||||
};
|
};
|
||||||
"10-ether-1G" = mylib.networking.mkStaticNetworkManagerProfile {
|
"10-ether-1G" = mylib.networking.mkStaticNetworkManagerProfile {
|
||||||
@ -64,6 +109,9 @@
|
|||||||
ip = "192.168.86.50/24";
|
ip = "192.168.86.50/24";
|
||||||
router = "192.168.86.5";
|
router = "192.168.86.5";
|
||||||
nameserver = "192.168.86.26;8.8.8.8;";
|
nameserver = "192.168.86.26;8.8.8.8;";
|
||||||
|
ip6 = "fd00::32/64";
|
||||||
|
router6 = "fd00::5";
|
||||||
|
nameserver6 = "2001:4860:4860::8888;2001:4860:4860::8844;";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user