Add resolved
This commit is contained in:
parent
7190dc4a98
commit
876d7d2518
|
@ -31,6 +31,7 @@
|
||||||
sshKey = config.sops.secrets."borg-ssh-key".path;
|
sshKey = config.sops.secrets."borg-ssh-key".path;
|
||||||
};
|
};
|
||||||
kubo = { enable = true; };
|
kubo = { enable = true; };
|
||||||
|
resolved = { enable = true; };
|
||||||
};
|
};
|
||||||
hardware = {
|
hardware = {
|
||||||
amdPassthrough = true;
|
amdPassthrough = true;
|
||||||
|
|
|
@ -24,6 +24,7 @@ in {
|
||||||
./services/nginx.nix
|
./services/nginx.nix
|
||||||
./services/matrix.nix
|
./services/matrix.nix
|
||||||
./services/ipfs.nix
|
./services/ipfs.nix
|
||||||
|
./services/resolved.nix
|
||||||
./linux/base.nix
|
./linux/base.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -33,6 +34,14 @@ in {
|
||||||
# Control enabling of services
|
# Control enabling of services
|
||||||
# Services are system specific so they go here
|
# Services are system specific so they go here
|
||||||
services = {
|
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
|
# Use zramSwap, enabled by default
|
||||||
zramSwap = mkDefaultOption "zram memory compression"
|
zramSwap = mkDefaultOption "zram memory compression"
|
||||||
config.nathan.config.isDesktop;
|
config.nathan.config.isDesktop;
|
||||||
|
|
|
@ -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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue