forked from colonelpanic/dotfiles
[NixOS] Add dean syncthing and railbird directory
This commit is contained in:
parent
1eea8c61e7
commit
6f1242b02c
@ -13,6 +13,7 @@ let
|
|||||||
jay-lenovo = { id = "AP5ZUKJ-QBVYWCN-DYHR3UB-JJXRWNI-CAORGYM-HWRKHEH-ZJSTRLN-PP5USQX"; };
|
jay-lenovo = { id = "AP5ZUKJ-QBVYWCN-DYHR3UB-JJXRWNI-CAORGYM-HWRKHEH-ZJSTRLN-PP5USQX"; };
|
||||||
jimi-hendnix = { id = "55JWW5K-4NY5DKT-TR4MVPO-UNOMQKM-J7TYCRF-CCCZGPM-FVRKHID-JVFLAAV"; };
|
jimi-hendnix = { id = "55JWW5K-4NY5DKT-TR4MVPO-UNOMQKM-J7TYCRF-CCCZGPM-FVRKHID-JVFLAAV"; };
|
||||||
railbird-sf = { id = "5F4FPJM-KRBFVIH-CTTB2NC-7CPVGAM-CONMH2Q-SQPRODO-CWKRFPF-HVN4AAD"; };
|
railbird-sf = { id = "5F4FPJM-KRBFVIH-CTTB2NC-7CPVGAM-CONMH2Q-SQPRODO-CWKRFPF-HVN4AAD"; };
|
||||||
|
dean = { id = "RIVW4FP-NZNGGGD-4ET26IC-R6CZHEU-4EBIDHX-U756VWB-W7EM3LE-3YQ6YA3"; };
|
||||||
};
|
};
|
||||||
allDevices = builtins.attrNames devices;
|
allDevices = builtins.attrNames devices;
|
||||||
in
|
in
|
||||||
@ -22,6 +23,7 @@ makeEnable config "modules.syncthing" true {
|
|||||||
chown -R syncthing:syncthing /var/lib/syncthing
|
chown -R syncthing:syncthing /var/lib/syncthing
|
||||||
chmod -R 2770 /var/lib/syncthing
|
chmod -R 2770 /var/lib/syncthing
|
||||||
mkdir -p /var/lib/syncthing/sync
|
mkdir -p /var/lib/syncthing/sync
|
||||||
|
mkdir -p /var/lib/syncthing/railbird
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
services.syncthing = {
|
services.syncthing = {
|
||||||
@ -34,6 +36,11 @@ makeEnable config "modules.syncthing" true {
|
|||||||
devices = allDevices;
|
devices = allDevices;
|
||||||
copyOwnershipFromParent = true;
|
copyOwnershipFromParent = true;
|
||||||
};
|
};
|
||||||
|
railbird = {
|
||||||
|
path = "~/railbird";
|
||||||
|
devices = allDevices;
|
||||||
|
copyOwnershipFromParent = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
options = {
|
options = {
|
||||||
relaysEnabled = true;
|
relaysEnabled = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user