Anthony Rodriguez
2b77ac239e
Moved every service in their own module, and conditionally enable them based on profiles.
14 lines
280 B
Nix
14 lines
280 B
Nix
{
|
|
lib,
|
|
config,
|
|
...
|
|
}: {
|
|
config = lib.mkIf config.local.profiles.desktop.enable {
|
|
services = {
|
|
syncthing = {
|
|
enable = true;
|
|
};
|
|
};
|
|
systemd.services.syncthing.environment.STNODEFAULTFOLDER = "true"; # Don't create default ~/Sync folder
|
|
};
|
|
}
|