mirror of
https://github.com/nix-community/home-manager
synced 2024-12-24 10:49:48 +01:00
owncloud-client: add module
This commit is contained in:
parent
85a71a3923
commit
3bcd9d747b
2 changed files with 30 additions and 0 deletions
|
@ -34,6 +34,7 @@ let
|
|||
./services/gpg-agent.nix
|
||||
./services/keepassx.nix
|
||||
./services/network-manager-applet.nix
|
||||
./services/owncloud-client.nix
|
||||
./services/random-background.nix
|
||||
./services/redshift.nix
|
||||
./services/syncthing.nix
|
||||
|
|
29
modules/services/owncloud-client.nix
Normal file
29
modules/services/owncloud-client.nix
Normal file
|
@ -0,0 +1,29 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
{
|
||||
options = {
|
||||
services.owncloud-client = {
|
||||
enable = mkEnableOption "Owncloud Client";
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf config.services.owncloud-client.enable {
|
||||
systemd.user.services.owncloud-client = {
|
||||
Unit = {
|
||||
Description = "Owncloud Client";
|
||||
After = [ "graphical-session-pre.target" ];
|
||||
PartOf = [ "graphical-session.target" ];
|
||||
};
|
||||
|
||||
Service = {
|
||||
ExecStart = "${pkgs.owncloud-client}/bin/owncloud";
|
||||
};
|
||||
|
||||
Install = {
|
||||
WantedBy = [ "graphical-session.target" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue