From a9bfae3d4c65f17af70222a2c918839cdbdd09ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Max=20K=C3=A4nner?= Date: Mon, 11 Mar 2024 14:33:12 +0100 Subject: [PATCH] 177 current 1970-01-01 01:00:00 24.05.20240303.b8697e5 6.6.19 * --- flake.nix | 2 +- hosts/MaxNixosLaptop/configuration.nix | 1 + modules/nixos/wifi.nix | 11 +++++++++-- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index 60cabd7..384cdbb 100644 --- a/flake.nix +++ b/flake.nix @@ -30,12 +30,12 @@ system = "x86_64-linux"; modules = [ ./hosts/MaxNixosLaptop/configuration.nix + sops-nix.nixosModules.sops home-manager.nixosModules.default { home-manager.useGlobalPkgs = true; home-manager.useUserPackages = true; } - sops-nix.nixosModules.sops ]; }; }; diff --git a/hosts/MaxNixosLaptop/configuration.nix b/hosts/MaxNixosLaptop/configuration.nix index 7dc01a9..3b2f277 100644 --- a/hosts/MaxNixosLaptop/configuration.nix +++ b/hosts/MaxNixosLaptop/configuration.nix @@ -12,6 +12,7 @@ ./hardware-configuration.nix # script for rebuilding nixos ../../modules/nixos/rebuild.nix + ../../modules/nixos/wifi.nix # greetd login manager ../../modules/nixos/greetd.nix # sway as window manager diff --git a/modules/nixos/wifi.nix b/modules/nixos/wifi.nix index 5e37746..ad887b4 100644 --- a/modules/nixos/wifi.nix +++ b/modules/nixos/wifi.nix @@ -1,5 +1,12 @@ -{config, ...}: { - sops.secrets."wireless.env" = {}; +{ + config, + inputs, + ... +}: { + sops.secrets."wireless.env" = { + sopsFile = ../../secrets/wifi.yaml; + }; + sops.age.keyFile = /home/max/.config/sops/age/keys.txt; networking.wireless = { enable = true; userControlled.enable = true;