[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,14 +1,17 @@
{ pkgs, config, lib, ... }:
with lib;
let
{
pkgs,
config,
lib,
...
}:
with lib; let
cfg = config.programs.goread;
# configDir =
# if pkgs.stdenv.isDarwin then
# "${config.home.homeDirectory}Library/Application Support/goread"
# else
# "${config.xdg.configHome}/goread";
in
{
in {
options = {
programs.goread = {
enable = mkEnableOption "goread - a terminal RSS/Atom reader";
@@ -16,17 +19,17 @@ in
config = with types; {
urls = mkOption {
type = attrsOf (listOf attrs);
default = { };
default = {};
description = ''
Urls that will be fetched ~/.config/goread/urls.yml
'';
example = { };
example = {};
};
colorscheme = mkOption {
type = attrsOf str;
default = { };
example = { };
default = {};
example = {};
description = ''
Colorscheme that will be fetched ~/.config/goread/colorscheme.json
'';
@@ -36,12 +39,11 @@ in
};
config = {
home.packages = mkIf cfg.enable [ pkgs.goread ];
home.packages = mkIf cfg.enable [pkgs.goread];
xdg.configFile = mkIf cfg.enable {
"goread/urls.yml".text = generators.toYAML { } cfg.config.urls;
"goread/urls.yml".text = generators.toYAML {} cfg.config.urls;
# "goread/colorscheme.json".text = lib.generators.toJSON cfg.config.colorscheme;
};
};
}