Move zerotier out of the common module

This commit is contained in:
2024-09-25 21:05:05 -07:00
parent e30a5830ef
commit 66786c2455
5 changed files with 11 additions and 6 deletions

View File

@@ -15,6 +15,7 @@
common = import ./modules/common.nix; common = import ./modules/common.nix;
prompt = import ./modules/prompt.nix; prompt = import ./modules/prompt.nix;
server = import ./modules/server.nix; server = import ./modules/server.nix;
zerotier = import ./modules/zerotier.nix;
}; };
nixosConfigurations = { nixosConfigurations = {

View File

@@ -3,6 +3,7 @@
imports = [ imports = [
self.nixosModules.common self.nixosModules.common
self.nixosModules.prompt self.nixosModules.prompt
self.nixosModules.zerotier
./backup.nix ./backup.nix
./dev.nix ./dev.nix
./printing.nix ./printing.nix

View File

@@ -4,6 +4,7 @@
self.nixosModules.common self.nixosModules.common
self.nixosModules.prompt self.nixosModules.prompt
self.nixosModules.server self.nixosModules.server
self.nixosModules.zerotier
./dns.nix ./dns.nix
]; ];

View File

@@ -1,4 +1,4 @@
{ pkgs, secrets, ... }: { pkgs, ... }:
{ {
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
@@ -41,11 +41,6 @@
''; '';
}; };
services.zerotierone = {
enable = true;
joinNetworks = secrets.zerotier.networks;
};
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
git-crypt git-crypt
jq jq

7
modules/zerotier.nix Normal file
View File

@@ -0,0 +1,7 @@
{ secrets, ... }:
{
services.zerotierone = {
enable = true;
joinNetworks = secrets.zerotier.networks;
};
}