Skip to content

Commit

Permalink
nixos/laptop: switch to systemd-resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagokokada committed Sep 12, 2023
1 parent 9b2a3ce commit 5a35811
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions nixos/laptop.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
# Use Network Manager
networkmanager = {
enable = true;
dns = "dnsmasq";
wifi.backend = "iwd";
dispatcherScripts = [{
source =
Expand Down Expand Up @@ -75,10 +74,10 @@
# Enable laptop specific services
services = {
# Enable Blueman to manage Bluetooth
blueman = { enable = true; };
blueman.enable = true;

# For battery status reporting
upower = { enable = true; };
upower.enable = true;

# Only suspend on lid closed when laptop is disconnected
logind = {
Expand All @@ -87,6 +86,13 @@
lidSwitchExternalPower = lib.mkDefault "lock";
};

# Use systemd-resolved for DNS
resolved = {
enable = true;
# Can make DNS lookups really slow
dnssec = "false";
};

# Reduce power consumption
tlp.enable = true;
};
Expand Down

0 comments on commit 5a35811

Please sign in to comment.