refactor(users/tazjin): Extract non-home persistence config
This will be reused between machines. Change-Id: Ice7835ce7e63b00284e046606309e882412cda26 Reviewed-on: https://cl.tvl.fyi/c/depot/+/5547 Tested-by: BuildkiteCI Reviewed-by: tazjin <tazjin@tvl.su> Autosubmit: tazjin <tazjin@tvl.su>
This commit is contained in:
parent
09f27d278d
commit
2b75ee689d
3 changed files with 39 additions and 24 deletions
12
users/tazjin/nixos/modules/zerotier.nix
Normal file
12
users/tazjin/nixos/modules/zerotier.nix
Normal file
|
@ -0,0 +1,12 @@
|
|||
# Configuration for my Zerotier network.
|
||||
|
||||
{
|
||||
environment.persistence."/persist".directories = [
|
||||
"/var/lib/zerotier-one"
|
||||
];
|
||||
|
||||
services.zerotierone.enable = true;
|
||||
services.zerotierone.joinNetworks = [
|
||||
"35c192ce9bd4c8c7"
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue