🚀 add option to enable resolved
I recently had problems with resolving dns entries. This is in case I need a quick fix;nixos
parent
69d5aca908
commit
b2fac916b4
|
@ -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,9 +33,14 @@
|
||||||
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 = [
|
||||||
{ output = "HDMI-1"; }
|
{ output = "HDMI-1"; }
|
||||||
|
|
Loading…
Reference in New Issue