103 lines
2.5 KiB
Nix
103 lines
2.5 KiB
Nix
{
|
|
mylib,
|
|
pkgs,
|
|
...
|
|
}: {
|
|
imports = [
|
|
# Include the results of the hardware scan.
|
|
./hardware-configuration.nix
|
|
../modules
|
|
|
|
# inputs.musnix.nixosModules.musnix
|
|
];
|
|
|
|
modules = {
|
|
containers = {
|
|
enable = true;
|
|
|
|
homeassistant.enable = false;
|
|
stablediffusion.enable = true;
|
|
jellyfin.enable = false;
|
|
fileflows.enable = false;
|
|
sonarr.enable = false;
|
|
radarr.enable = false;
|
|
hydra.enable = false;
|
|
sabnzbd.enable = false;
|
|
};
|
|
|
|
systemd-networkd = {
|
|
networks = {
|
|
# This should override the default network 50-ether
|
|
"10-ether-2_5G" = mylib.networking.mkStaticSystemdNetwork {
|
|
interface = "enp8s0";
|
|
ip = ["192.168.86.50/24"];
|
|
router = ["192.168.86.5"];
|
|
nameserver = ["192.168.86.26"];
|
|
routable = true;
|
|
};
|
|
# "10-ether-1G" = mylib.networking.mkStaticSystemdNetwork {...};
|
|
};
|
|
|
|
wireguard-tunnels = {
|
|
wg0-de-115 =
|
|
mylib.networking.mkWireguardService
|
|
"wg0-de-115"
|
|
"proton-de-115.key"
|
|
"9+CorlxrTsQR7qjIOVKsEkk8Z7UUS5WT3R1ccF7a0ic="
|
|
"194.126.177.14";
|
|
|
|
wg0-lu-16 =
|
|
mylib.networking.mkWireguardService
|
|
"wg0-lu-16"
|
|
"proton-lu-16.key"
|
|
"asu9KtQoZ3iKwELsDTgjPEiFNcD1XtgGgy3O4CZFg2w="
|
|
"92.223.89.133";
|
|
|
|
wg0-kh-8 =
|
|
mylib.networking.mkWireguardService
|
|
"wg0-kh-8"
|
|
"proton-kh-8.key"
|
|
"D4M0O60wCBf1nYWOmXRfK7IpgG7VBBwQLeWVFLIqFG4="
|
|
"188.215.235.82";
|
|
|
|
wg0-ch-70 =
|
|
mylib.networking.mkWireguardService
|
|
"wg0-ch-70"
|
|
"proton-ch-70.key"
|
|
"17I34jHOMcmI7LKBqxosTfLgwGjO5OKApLcRSPlyymM="
|
|
"185.159.157.13";
|
|
};
|
|
};
|
|
};
|
|
|
|
# Low latency audio
|
|
# musnix = {
|
|
# enable = true;
|
|
# # musnix.soundcardPciId = ;
|
|
# };
|
|
|
|
services.xserver = {
|
|
# Configure keymap in X11
|
|
xkb.layout = "us";
|
|
xkb.variant = "altgr-intl";
|
|
|
|
videoDrivers = ["nvidia"]; # NVIDIA
|
|
# videoDrivers = ["amdgpu"];
|
|
};
|
|
|
|
# NOTE: This has been relocated here from the default config, because it forces en-US keyboard layout
|
|
# The laptop needs de-DE...
|
|
# Chinese Input
|
|
i18n.inputMethod.enabled = "fcitx5";
|
|
i18n.inputMethod.fcitx5 = {
|
|
waylandFrontend = true;
|
|
|
|
addons = with pkgs; [
|
|
fcitx5-gtk
|
|
libsForQt5.fcitx5-qt
|
|
fcitx5-chinese-addons
|
|
fcitx5-configtool # TODO: Remove this and set config through HomeManager
|
|
];
|
|
};
|
|
}
|