refactor(wireless): privatize networks

This commit is contained in:
Infinidoge 2023-03-31 12:06:29 -04:00
parent 5c8024d5a6
commit 285c5ad7cc
5 changed files with 16 additions and 20 deletions

8
flake.lock generated
View file

@ -703,11 +703,11 @@
}, },
"private": { "private": {
"locked": { "locked": {
"lastModified": 1680192378, "lastModified": 1680278490,
"narHash": "sha256-/zpk/EIDQkwoEPsYksKywno8+XAsKfYs0hxPekGafuk=", "narHash": "sha256-CiP5oShOX+BXh8r+7mEMJg2OzszZ3XOwdqlu3zhU6Uk=",
"ref": "refs/heads/master", "ref": "refs/heads/master",
"rev": "f451f10bd4711ebc4c538c18a92e722a00ef1697", "rev": "5dc38740b5b82d2b55e5dac54b666faf5e4fcfd8",
"revCount": 1, "revCount": 2,
"type": "git", "type": "git",
"url": "ssh://git@github.com/Infinidoge/universe-private" "url": "ssh://git@github.com/Infinidoge/universe-private"
}, },

View file

@ -1,13 +1,11 @@
{ suites, profiles, pkgs, lib, ... }: { { suites, profiles, pkgs, lib, private, ... }: {
imports = lib.lists.flatten [ imports = lib.lists.flatten [
(with suites; [ (with suites; [
base base
develop develop
]) ])
(with profiles; [ private.nixosModules.wireless
networking.wireless
])
./hardware-configuration.nix ./hardware-configuration.nix
]; ];

View file

@ -1,9 +1,10 @@
{ suites, profiles, pkgs, lib, ... }: { { suites, profiles, pkgs, lib, private, ... }: {
imports = lib.lists.flatten [ imports = lib.lists.flatten [
(with suites; [ base ]) (with suites; [ base ])
private.nixosModules.wireless
(with profiles; [ (with profiles; [
networking.wireless
# services.proxy # services.proxy
]) ])

View file

@ -1,10 +1,8 @@
{ lib, suites, profiles, ... }: { { lib, suites, profiles, private, ... }: {
imports = lib.lists.flatten [ imports = lib.lists.flatten [
(with suites; [ base develop ]) (with suites; [ base develop ])
(with profiles; [ private.nixosModules.wireless
networking.wireless
])
./hardware-configuration.nix ./hardware-configuration.nix
]; ];

View file

@ -1,10 +1,9 @@
{ suites, profiles, pkgs, lib, ... }: { { suites, profiles, pkgs, lib, private, ... }: {
imports = lib.our.flattenListSet { imports = lib.our.flattenListSet {
suites = with suites; [ base develop ]; suites = with suites; [ base develop ];
imports = [ ./hardware-configuration.nix ]; imports = [
profiles = with profiles; ./hardware-configuration.nix
[ private.nixosModules.wireless
networking.wireless
]; ];
}; };