Add resolved

This commit is contained in:
Nathan McCarty 2022-12-25 20:17:36 -05:00
parent 7190dc4a98
commit 876d7d2518
Signed by: thatonelutenist
GPG Key ID: D70DA3DD4D1E9F96
3 changed files with 21 additions and 0 deletions

View File

@ -31,6 +31,7 @@
sshKey = config.sops.secrets."borg-ssh-key".path;
};
kubo = { enable = true; };
resolved = { enable = true; };
};
hardware = {
amdPassthrough = true;

View File

@ -24,6 +24,7 @@ in {
./services/nginx.nix
./services/matrix.nix
./services/ipfs.nix
./services/resolved.nix
./linux/base.nix
];
@ -33,6 +34,14 @@ in {
# Control enabling of services
# Services are system specific so they go here
services = {
# Enable resolved
resolved = {
enable = mkEnableOption "resolved";
nameservers = mkOption { default = [ "10.0.0.10" ]; };
domains = mkOption {
default = [ "mccarty.io" "stranger.systems" "local" ];
};
};
# Use zramSwap, enabled by default
zramSwap = mkDefaultOption "zram memory compression"
config.nathan.config.isDesktop;

View File

@ -0,0 +1,11 @@
{ config, lib, pkgs, ... }:
with lib; {
config = mkIf config.nathan.services.resolved.enable {
services.resolved = {
enable = true;
domains = config.nathan.services.resolved.domains;
fallbackDns = config.nathan.services.resolved.nameservers;
};
};
}