config: refactor and update

This commit is contained in:
Gabriel Arazas 2022-10-10 11:45:22 +08:00
parent 6cb95c3a2a
commit ae0cb8596a
3 changed files with 3 additions and 3 deletions

View File

@ -124,7 +124,7 @@ in {
(lib.mkIf cfg.extras.enable {
home.packages = with pkgs; [
tree-sitter # The modern way of text highlighting.
hyperfine # Command-line profiling.
hyperfine # Command-line profiling making sure your programs runs FIIIIINE.
github-cli # So you don't have to use much of GitHub on the site, I guess.
hut # Easier interfacing with Sourcehut.
act # Test your CI without embarrassing yourself pushing into upstream.

View File

@ -6,7 +6,7 @@ let
in
{
options.profiles.i18n = {
enable = lib.mkEnableOption "i18n-related options";
enable = lib.mkEnableOption "main i18n config";
ibus.enable = lib.mkEnableOption "i18n config with ibus";
fcitx5.enable = lib.mkEnableOption "i18n config with fcitx5";
};

View File

@ -163,7 +163,7 @@ in {
description = "gallery-dl archive job for group '${name}'";
documentation = [ "man:gallery-dl(1)" ];
enable = true;
path = [ cfg.package ] ++ (with pkgs; [ brotli coreutils ffmpeg ]);
path = with pkgs; [ brotli coreutils ffmpeg cfg.package ];
preStart = ''
mkdir -p ${lib.escapeShellArg cfg.archivePath}
'';