Commit Graph

44 Commits

Author SHA1 Message Date
c410ece05a
treewide: remove options attribute for modules 2023-10-02 14:26:11 +08:00
153495b514
services/activitywatch: update watcher service config 2023-09-04 11:32:47 +08:00
7dacbe6963
chore: reformat codebase 2023-08-31 09:59:56 +08:00
a9ab8e06ef
services/activitywatch: init module 2023-08-02 23:02:03 +08:00
3c4aef00d4
modules: convert module description to RFC0072-style 2023-07-27 11:13:39 +08:00
be9295b6aa
services/matcha: init module 2023-07-22 09:58:45 +08:00
e8a05bef8b
modules: fix description
Didn't notice it was `mkDocs` instead of `mdDocs`.
2023-07-19 22:46:40 +08:00
28faf41a1c
chore: reformat codebase 2023-07-19 17:27:33 +08:00
3d10612e9b
services/distant: add Distant server daemon
Because of this, the manager and the server services should be opted in
to be enabled.
2023-07-19 08:11:14 +08:00
e42daf3404
services/distant: init home-manager module 2023-07-19 07:38:08 +08:00
395a42d60b
services/bleachbit: update unit names 2023-02-11 09:16:32 +08:00
Gabriel Arazas
3a7816a901 chore: reformat codebase 2022-11-19 11:32:29 +08:00
Gabriel Arazas
1658f2d4ca services/bleachbit: cleanup and format 2022-11-13 14:03:49 +08:00
Gabriel Arazas
b1726ddd0d services/bleachbit: add package option 2022-11-13 14:03:49 +08:00
Gabriel Arazas
3b67d5b5e5 services/bleachbit: update units 2022-10-12 07:02:42 +08:00
Gabriel Arazas
bc847f28ea services/bleachbit: change the cleaners default value 2022-10-12 07:02:24 +08:00
Gabriel Arazas
d20b192c41 services: refactor 2022-09-12 17:36:22 +08:00
Gabriel Arazas
767bfddead services/yt-dlp: update config to log to journal
Apparently, it doesn't really log the errors in the journal so it can
make the service failed for no reason. It can be configured to redirect
it to journal.
2022-08-31 14:37:58 +08:00
Gabriel Arazas
36909a281f services/yt-dlp: refactor 2022-08-11 09:43:17 +08:00
Gabriel Arazas
220b16e954 services/bleachbit: properly escape shell arguments 2022-08-06 15:44:50 +08:00
Gabriel Arazas
8590f4ea32 services/recoll: remove since it is upstreamed 2022-07-31 14:44:29 +08:00
Gabriel Arazas
8fdd60098f services: fix correct module documentation 2022-07-30 16:22:24 +08:00
Gabriel Arazas
faf11bb6ee services: fix proper values 2022-07-26 20:04:08 +08:00
Gabriel Arazas
906ea48993 services: change dependency requirement
I didn't realize `network.target` is very ambiguous. The next best thing
for booting up the service after the system is up is `default.target`
but we're being explicit here for NixOS services just to make sure.
2022-07-22 15:02:30 +08:00
Gabriel Arazas
d9811b1d84 services/gallery-dl: add job persistence 2022-07-21 09:54:36 +08:00
Gabriel Arazas
e9c2c3d226 services/yt-dlp: add job persistence 2022-07-21 09:54:00 +08:00
Gabriel Arazas
37a1c4ee33 services/yt-dlp: escape extra arguments
Proper service scripting and all that.
2022-07-20 16:58:31 +08:00
Gabriel Arazas
dd9921fc7e services/gallery-dl: add job-specific settings
The arguments are also arranged to let the resulting settings cascade
from service-wide to job-specific settings.
2022-07-20 16:56:44 +08:00
Gabriel Arazas
ab1222abb3 services/mopidy: remove service
It is now upstreamed into home-manager so yay!
2022-05-21 09:50:55 +08:00
Gabriel Arazas
c0dd8ab1a8 services/yt-dlp: fix service working directory
There is the `--paths` option for that purpose. It also eliminates the
workaround for creating the directory before starting the service for
newly-bootstrapped systems.

The several hardening options have also been corrected.
2022-04-22 13:13:48 +08:00
Gabriel Arazas
49018fb53e modules: reformat and refactor 2022-04-06 10:48:29 +08:00
Gabriel Arazas
aa690de222 services/bleachbit: add withChatCleanup option
Comes along a refactoring of the code. Didn't realized `let` is a thing
back then. Whoops...
2022-04-03 10:20:54 +08:00
Gabriel Arazas
6e214feb4a services/yt-dlp: init service
Structure-wise, it is pretty similar to the gallery-dl service. It was
about to be combined into a bigger service module as a dedicated service
for multimedia archiving but it is better to have them modularized in
the long run.
2022-04-03 10:18:22 +08:00
Gabriel Arazas
e0bba5655b services/gallery-dl: init service
Both for home-manager and NixOS, this time. Because I find use for both
of them, especially if you have a dedicated server for NixOS.
2022-04-03 10:10:29 +08:00
Gabriel Arazas
ac91cdc053 archivebox: update the service module
It can now add and schedule archiving tasks. Since archivebox will use
Crontab module (which uses `/usr/bin/crontab`), the scheduling with the
interface is out of the question. What better way to make it possible
than creating a home-manager module for it?
2022-03-21 10:06:23 +08:00
Gabriel Arazas
998f408fb2 plover: init service 2022-03-09 21:06:27 +08:00
Gabriel Arazas
905b5680b1 Clean up the files 2022-02-02 12:27:32 +08:00
Gabriel Arazas
5f3e9a4022 modules/home-manager/services/mopidy: refactor and update 2022-01-31 07:58:16 +08:00
Gabriel Arazas
4800a803bd modules/home-manager/services/recoll: init service 2022-01-31 07:57:38 +08:00
Gabriel Arazas
342a077f04 home-manager/services/mopidy: Simplify the service
Now, the configuration is made into a proper Nix configuration with the
output being converted to INI format.

For mapping the types, look for `mopidy/config/types.py`. The only
quirky mapping so far is the list type.
2022-01-20 16:12:48 +08:00
Gabriel Arazas
7db21c9fc5 Format the files through nixfmt 2022-01-11 20:22:08 +08:00
Gabriel Arazas
d0a87597c5 Make minor adjustments to several modules 2022-01-11 20:19:54 +08:00
Gabriel Arazas
66dbda3561 Create mopidy home-manager module
It is just an adapted version from the NixOS module. I'll eventually
figure out how to be 'properly configured' with the Nix language through
the `lib.generator`.
2022-01-11 20:15:05 +08:00
Gabriel Arazas
6b481a163a Restructure the modules
While it is easier to maintain the modules by prefixing them all with
`modules`, it is not easy when used from other flakes and/or modules.
This is my attempt on making it easier with appropriate namespaces.

Update home-manager user from the restructure
2022-01-09 19:44:09 +08:00