diff --git a/meta/base.yaml b/meta/base.yaml index ad10b04..71e254f 100644 --- a/meta/base.yaml +++ b/meta/base.yaml @@ -10,3 +10,4 @@ - clean: ~/: ~/.config: + ~/.config/systemd/user: diff --git a/meta/configs/seafile.yaml b/meta/configs/seafile.yaml new file mode 100644 index 0000000..4e6cc72 --- /dev/null +++ b/meta/configs/seafile.yaml @@ -0,0 +1,8 @@ +- link: + ~/.config/systemd/user/seafile.service: services/seafile.service + +- shell: + - + command: "yay --sudoloop --nodiffmenu --noeditmenu --noupgrademenu --nocleanmenu --noredownload --norebuild --useask --needed -S seafile seafile-client" + description: "Installing seafile" + - command: "systemctl --user enable seafile && systemctl --user start seafile" diff --git a/meta/profiles/arch.desktop b/meta/profiles/arch.desktop index fe05ce2..725b55a 100644 --- a/meta/profiles/arch.desktop +++ b/meta/profiles/arch.desktop @@ -16,3 +16,4 @@ rofi lf scripts calcurse +seafile diff --git a/meta/profiles/arch.thinkpad b/meta/profiles/arch.thinkpad index 3b6c440..402be8f 100644 --- a/meta/profiles/arch.thinkpad +++ b/meta/profiles/arch.thinkpad @@ -15,3 +15,4 @@ rofi lf scripts calcurse +seafile diff --git a/services/seafile.service b/services/seafile.service new file mode 100644 index 0000000..6ba3c54 --- /dev/null +++ b/services/seafile.service @@ -0,0 +1,12 @@ +[Unit] +Description=Seafile Daemon Startup +After=network.target + +[Service] +Type=oneshot +ExecStart=/usr/bin/seaf-cli start +ExecStop=/usr/bin/seaf-cli stop +RemainAfterExit=yes + +[Install] +WantedBy=default.target