diff --git a/nixos/hosts/wheatley/configuration.nix b/nixos/hosts/wheatley/configuration.nix index d9b35e0..ac15f38 100644 --- a/nixos/hosts/wheatley/configuration.nix +++ b/nixos/hosts/wheatley/configuration.nix @@ -50,6 +50,24 @@ networking.hostName = "wheatley"; + networking.networkmanager.enable = true; + + # Disable NetworkManager's internal DNS resolution + networking.networkmanager.dns = "none"; + + # These options are unnecessary when managing DNS ourselves + networking.useDHCP = false; + networking.dhcpcd.enable = false; + + # Configure DNS servers manually (this example uses Cloudflare and Google DNS) + # IPv6 DNS servers can be used here as well. + networking.nameservers = [ + "94.140.14.49" + "94.140.14.59" + "2a10:50c0:0:0:0:0:ded:ff" + "2a10:50c0:0:0:0:0:dad:ff" + ]; + services.openssh = { enable = true; # require public key authentication for better security @@ -93,8 +111,8 @@ wants = ["network-online.target"]; what = "https://nextcloud.gladtherescake.eu/remote.php/dav/files/GLaDTheresCake"; - where = "/home/kodi/nextcloud"; - options = "uid=1002,gid=100,file_mode=0664,dir_mode=2775"; + where = "/home/jellyfinmediaplayer/nextcloud"; + options = "uid=1003,gid=100,file_mode=0664,dir_mode=2775"; type = "davfs"; } ]; @@ -105,11 +123,12 @@ # users.users.jellyfinmediaplayer.group = "jellyfinmediaplayer"; # users.users.jellyfin.extraGroups = ["jellyfinmediaplayer"]; - users.extraUsers.kodi.isNormalUser = true; - - services.cage.user = "kodi"; - services.cage.program = "${pkgs.kodi-wayland}/bin/kodi-standalone"; - services.cage.enable = true; + # # Add stremio kiosk on wayland :) + # users.extraUsers.jellyfinmediaplayer.isNormalUser = true; + # services.cage.user = "jellyfinmediaplayer"; + # services.cage.program = "${pkgs.jellyfin-media-player}/bin/jellyfinmediaplayer"; + # services.cage.enable = true; + # services.cage.extraArguments = ["-f"]; users.users.aria2.group = "aria2"; users.groups.aria2 = {}; @@ -219,12 +238,12 @@ { #Shodan public key publicKey = "Zah2nZDaHF8jpP5AtMA5bhE7t38fMB2UHzbXAc96/jw="; - allowedIPs = ["10.0.0.4/32" "fdc9:281f:04d7:9ee9::4/128"]; + allowedIPs = ["10.0.0.4/32" "fdc9:281f:04d7:9ee9::3/128"]; } { #ADA public key publicKey = "SHu7xxRVWuqp4U4uipMoITKrFPWZATGsJevUeqBSzWo="; - allowedIPs = ["10.0.0.5/32" "fdc9:281f:04d7:9ee9::5/128"]; + allowedIPs = ["10.0.0.5/32" "fdc9:281f:04d7:9ee9::3/128"]; } ]; }; @@ -241,8 +260,6 @@ "net.ipv4.ip_forward" = 1; "net.ipv6.conf.all.forwarding" = 1; }; - # Enable audio devices - boot.kernelParams = ["snd_bcm2835.enable_hdmi=1" "snd_bcm2835.enable_headphones=1"]; # enable NAT networking.nat.enable = true;