diff --git a/hosts/common/global/default.nix b/hosts/common/global/default.nix index 81d85f7..cf11098 100644 --- a/hosts/common/global/default.nix +++ b/hosts/common/global/default.nix @@ -1,9 +1,11 @@ # This config will be applied to all hosts { inputs, + lib, outputs, ... -}: { +}: +{ imports = [ inputs.home-manager.nixosModules.home-manager inputs.catppuccin.nixosModules.catppuccin @@ -16,10 +18,13 @@ ]; home-manager.useGlobalPkgs = true; - home-manager.extraSpecialArgs = {inherit inputs outputs;}; + home-manager.extraSpecialArgs = { inherit inputs outputs; }; - networking.nameservers = [ + networking.nameservers = lib.mkForce [ "9.9.9.9" + "149.112.112.112" + "2620:fe::fe" + "2620:fe::9" ]; virtualisation.docker.enable = true; diff --git a/hosts/widar/default.nix b/hosts/widar/default.nix index a8cbca1..6a471ee 100644 --- a/hosts/widar/default.nix +++ b/hosts/widar/default.nix @@ -33,6 +33,22 @@ variant = ""; }; + services.logind = { + lidSwitch = "hibernate"; + lidSwitchExternalPower = "lock"; + }; + + services.thermald.enable = true; + services.tlp = { + enable = true; + settings = { + CPU_SCALING_GOVERNOR_ON_AC = "performance"; + CPU_SCALING_GOVERNOR_ON_BAT = "powersave"; + CPU_ENERGY_PERF_POLICY_ON_BAT = "power"; + CPU_ENERGY_PERF_POLICY_ON_AC = "performance"; + }; + }; + services.openssh = { enable = true; openFirewall = true;