From d04073c5cf6ff18c7ec55bbd66c95467e66f742d Mon Sep 17 00:00:00 2001 From: tzlil Date: Sun, 12 Mar 2023 04:33:23 +0200 Subject: add wifi and enable wireless networking to laptop --- hosts/laptop/cfg.nix | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/hosts/laptop/cfg.nix b/hosts/laptop/cfg.nix index 57fffb8..2458437 100644 --- a/hosts/laptop/cfg.nix +++ b/hosts/laptop/cfg.nix @@ -74,7 +74,19 @@ algorithm = "zstd"; }; - networking.interfaces.wlp1s0.useDHCP = lib.mkDefault true; + networking = { + interfaces.wlp1s0.useDHCP = lib.mkDefault true; + wireless = { + enable = true; + userControlled.enable = true; + networks = { + home = { + hidden = true; + pskRaw = "7bb8bcec7c13f500df1a63928785c98e8fd27bf1fea94f625cfed0ecf2cc5247"; + }; + }; + }; + }; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; -- cgit 1.4.1