Move zerotier out of the common module
This commit is contained in:
parent
e30a5830ef
commit
66786c2455
5 changed files with 11 additions and 6 deletions
|
|
@ -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 = {
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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
7
modules/zerotier.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
{ secrets, ... }:
|
||||||
|
{
|
||||||
|
services.zerotierone = {
|
||||||
|
enable = true;
|
||||||
|
joinNetworks = secrets.zerotier.networks;
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue