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;