🚀 add option to enable resolved
I recently had problems with resolving dns entries. This is in case I need a quick fix;
This commit is contained in:
parent
69d5aca908
commit
b2fac916b4
1 changed files with 7 additions and 2 deletions
|
@ -2,7 +2,7 @@
|
||||||
# your system. Help is available in the configuration.nix(5) man page
|
# your system. Help is available in the configuration.nix(5) man page
|
||||||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||||||
|
|
||||||
{ config, pkgs, ... }:
|
{ lib, config, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
@ -33,8 +33,13 @@
|
||||||
nameservers = [ "192.168.0.4" ];
|
nameservers = [ "192.168.0.4" ];
|
||||||
useDHCP = false;
|
useDHCP = false;
|
||||||
interfaces.enp42s0.useDHCP = true;
|
interfaces.enp42s0.useDHCP = true;
|
||||||
networkmanager.enable = true;
|
networkmanager = {
|
||||||
|
enable = true;
|
||||||
|
dns = lib.mkIf (config.services.resolved.enable) "systemd-resolved";
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
services.resolved.enable = lib.mkDefault false;
|
||||||
|
|
||||||
services.xserver.videoDrivers = [ "nvidia" ];
|
services.xserver.videoDrivers = [ "nvidia" ];
|
||||||
services.xserver.xrandrHeads = [
|
services.xserver.xrandrHeads = [
|
||||||
|
|
Loading…
Reference in a new issue