Compare commits

..

3 Commits

Author SHA1 Message Date
ef484c8ff0 fixed dns, modified config for valefor 2025-01-07 18:15:49 -05:00
ea2820a1bb Merge pull request 'Appliance server setup' (#4) from valefor-setup into master
Reviewed-on: #4
2025-01-05 20:36:45 -06:00
50d1e00a02 changed graphics config to amd - cloud
this to pull down any relevant amd packages from nixpkgs, not any nvidia
packages
2025-01-04 18:12:42 -05:00
3 changed files with 7 additions and 29 deletions

View File

@ -85,7 +85,7 @@ in {
# Graphics module (../../graphics/default.nix) # Graphics module (../../graphics/default.nix)
graphics = { graphics = {
enable = true; enable = true;
gpuVendor = "nvidia"; # or "amd" or "intel" gpuVendor = "amd"; # or "amd" or "intel"
wayland.enable = true; wayland.enable = true;
vulkan.enable = true; vulkan.enable = true;
}; };

View File

@ -87,7 +87,7 @@
# Core networking module (see ../../networking/core.nix) # Core networking module (see ../../networking/core.nix)
network = { network = {
firewall.enable = true; firewall.enable = true;
networkmanager.enable = true; networkManager.enable = true;
}; };
# DNS module (see ../../networking/dns.nix) # DNS module (see ../../networking/dns.nix)

View File

@ -98,34 +98,12 @@ in {
}) })
(lib.mkIf cfg.technitium.enable { (lib.mkIf cfg.technitium.enable {
systemd.services.technitium-dns = { services.technitium-dns-server = {
description = "Technitium DNS Server"; enable = true;
wantedBy = ["multi-user.target"]; openFirewall = true;
firewallTCPPorts = [53 5380 53443];
serviceConfig = { firewallUDPPorts = [53];
ExecStart = "${pkgs.technitium}/bin/dns-server-start.sh";
Restart = "on-failure";
};
# Environment configuration
environment =
{
DNS_LISTEN_ADDRESS = cfg.technitium.settings.address;
DNS_LISTEN_PORT = toString cfg.technitium.settings.port;
}
// lib.mapAttrs' (
name: value:
lib.nameValuePair "DNS_${lib.toUpper name}" (toString value)
)
cfg.technitium.settings.extraOptions;
}; };
networking.firewall = {
allowedTCPPorts = [53 cfg.technitium.settings.port];
allowedUDPPorts = [53 cfg.technitium.settings.port];
};
environment.systemPackages = [pkgs.technitium];
}) })
]; ];
} }