pub-solar-os/modules/nextcloud/default.nix

18 lines
405 B
Nix
Raw Permalink Normal View History

2021-05-30 19:10:28 +00:00
{ lib, config, pkgs, ... }:
with lib;
let
psCfg = config.pub-solar;
cfg = config.pub-solar.nextcloud;
in
{
options.pub-solar.nextcloud = {
enable = mkEnableOption "Life in sync";
};
config = mkIf cfg.enable {
home-manager = with pkgs; pkgs.lib.setAttrByPath [ "users" psCfg.user.name ] {
systemd.user.services.nextcloud-client = import ./nextcloud.service.nix pkgs;
};
};
}