[feat] Alejandra formatting

This commit is contained in:
uttarayan21
2024-03-21 21:35:51 +05:30
parent e8434fadf5
commit d5dc5a79d3
33 changed files with 699 additions and 589 deletions

View File

@@ -1,12 +1,13 @@
{ pkgs, config, lib, ... }:
with lib;
let
cfg = config.programs.tuifeed;
tomlFormat = pkgs.formats.toml { };
in
{
pkgs,
config,
lib,
...
}:
with lib; let
cfg = config.programs.tuifeed;
tomlFormat = pkgs.formats.toml {};
in {
options = {
programs.tuifeed = {
enable = mkEnableOption "tuifeed - a terminal RSS/Atom reader";
@@ -14,11 +15,11 @@ in
config = with types; {
sources = mkOption {
type = attrsOf str;
default = { };
default = {};
description = ''
Urls that will be fetched ~/.config/tuifeed/urls.yml
'';
example = { };
example = {};
};
article_title = mkOption {
@@ -30,15 +31,14 @@ in
description = ''
Urls that will be fetched ~/.config/tuifeed/urls.yml
'';
example = { };
example = {};
};
};
};
};
config = {
home.packages = mkIf cfg.enable [ pkgs.tuifeed ];
home.packages = mkIf cfg.enable [pkgs.tuifeed];
xdg.configFile = mkIf cfg.enable {
"tuifeed/config.toml".source = tomlFormat.generate "tuifeed-config" {
@@ -46,6 +46,5 @@ in
"article-title" = cfg.config.article_title;
};
};
};
}