From 57cbc3ac65272242bfee162b916d9675935e9c2e Mon Sep 17 00:00:00 2001 From: tzlil Date: Tue, 16 May 2023 20:44:21 +0300 Subject: networkmanager is annoying me and nothing else works, need to fix dns --- hosts/laptop/cfg.nix | 35 ++++++++++++++++++++++++++--------- 1 file changed, 26 insertions(+), 9 deletions(-) (limited to 'hosts/laptop') diff --git a/hosts/laptop/cfg.nix b/hosts/laptop/cfg.nix index b868a6e..8cf17d6 100644 --- a/hosts/laptop/cfg.nix +++ b/hosts/laptop/cfg.nix @@ -87,7 +87,22 @@ }; networking.interfaces.wlp1s0.useDHCP = lib.mkDefault true; - networking.networkmanager.enable = true; + + + # # iwd networking stuffs + # networking.networkmanager.enable = lib.mkForce false; + # networking.wireless.iwd.enable = true; + # services.connman = { + # enable = true; + # wifi.backend = "iwd"; + # }; + # networking.wireless.dbusControlled = true; + # home-manager.users.tzlil.home.packages = [pkgs.cmst]; + # networking.wireless.userControlled.enable = true; + # networking.wireless.enable = true; + # services.connman.enable = true; + + environment.persistence."/nix/persist".directories = [ "/etc/NetworkManager/system-connections" { @@ -97,6 +112,8 @@ } ]; + home-manager.users.tzlil.home.packages = [pkgs.schildichat-desktop pkgs.qutebrowser]; + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; @@ -115,15 +132,15 @@ services = { power-profiles-daemon.enable = true; thermald.enable = true; - }; - - services.tlp = { - settings = { - CPU_BOOST_ON_AC = 1; - CPU_BOOST_ON_BAT = 0; - CPU_SCALING_GOVERNOR_ON_AC = "performance"; - CPU_SCALING_GOVERNOR_ON_BAT = "powersave"; + tlp = { + settings = { + CPU_BOOST_ON_AC = 1; + CPU_BOOST_ON_BAT = 0; + CPU_SCALING_GOVERNOR_ON_AC = "performance"; + CPU_SCALING_GOVERNOR_ON_BAT = "powersave"; + }; }; + acpid.enable = true; }; }; } -- cgit 1.4.1