up
This commit is contained in:
@@ -1,18 +1,20 @@
|
|||||||
{
|
{
|
||||||
user,
|
user,
|
||||||
pkgs,
|
pkgs,
|
||||||
lib,
|
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
isDarwin = pkgs.stdenv.isDarwin;
|
isDarwin = pkgs.stdenv.isDarwin;
|
||||||
|
|
||||||
platformConfig = if isDarwin then {
|
platformConfig =
|
||||||
homeDir = "/Users/${user}";
|
if isDarwin
|
||||||
group = "staff";
|
then {
|
||||||
} else {
|
homeDir = "/Users/${user}";
|
||||||
homeDir = "/home/${user}";
|
group = "staff";
|
||||||
group = "users";
|
}
|
||||||
};
|
else {
|
||||||
|
homeDir = "/home/${user}";
|
||||||
|
group = "users";
|
||||||
|
};
|
||||||
in {
|
in {
|
||||||
services.syncthing = {
|
services.syncthing = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -29,11 +31,12 @@ in {
|
|||||||
devices = {
|
devices = {
|
||||||
"tahani" = {id = "6B7OZZF-TEAMUGO-FBOELXP-Z4OY7EU-5ZHLB5T-V6Z3UDB-Q2DYR43-QBYW6QM";};
|
"tahani" = {id = "6B7OZZF-TEAMUGO-FBOELXP-Z4OY7EU-5ZHLB5T-V6Z3UDB-Q2DYR43-QBYW6QM";};
|
||||||
"jason" = {id = "42II2VO-QYPJG26-ZS3MB2I-AOPVZ67-JJNSE76-U54CO5Y-634A5OG-ECU4YQA";};
|
"jason" = {id = "42II2VO-QYPJG26-ZS3MB2I-AOPVZ67-JJNSE76-U54CO5Y-634A5OG-ECU4YQA";};
|
||||||
|
"chidi" = {id = "N7W6SUT-QO6J4BE-T3Y65SM-OFGYGNV-TGYBJPX-JVN4Z72-AENZ247-KWXOQA6";};
|
||||||
};
|
};
|
||||||
folders = {
|
folders = {
|
||||||
"Projects" = {
|
"Projects" = {
|
||||||
path = "${platformConfig.homeDir}/Projects";
|
path = "${platformConfig.homeDir}/Projects";
|
||||||
devices = ["tahani" "jason"];
|
devices = ["tahani" "jason" "chidi"];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
options.globalAnnounceEnabled = false;
|
options.globalAnnounceEnabled = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user