Revert "first commit"

This reverts commit 10b3790ca5aded5116c55be4d8a5d46f2731ab73.
This commit is contained in:
Mars 2024-05-07 03:23:44 -04:00
parent f1c5038fd7
commit 0301f7dc24
14 changed files with 0 additions and 2480 deletions

View file

@ -1,62 +0,0 @@
{
lib,
pkgs,
config,
...
}:
with lib; let
cfg = config.programs.macchina;
tomlFormat = pkgs.formats.toml {};
in {
options.programs.macchina = {
enable = mkEnableOption "macchina";
package = mkPackageOption pkgs "macchina" {};
config = mkOption {
inherit (tomlFormat) type;
default = {};
example = {
theme = "Mezora";
show = [
"Kernel"
"Machine"
"OperatingSystem"
"Resolution"
"Uptime"
"LocalIP"
"Packages"
"ProcessorLoad"
"Memory"
"Battery"
];
};
description = ''
Macchina configuration.
'';
};
themes = with types;
mkOption {
inherit (tomlFormat) type;
default = {};
};
};
config = mkIf cfg.enable {
home.packages = [cfg.package];
xdg.configFile =
{
"macchina/macchina.toml".source =
tomlFormat.generate "macchina.toml" cfg.config;
}
// (
attrsets.concatMapAttrs (name: value: {
"macchina/themes/${name}.toml".source =
tomlFormat.generate "${name}.toml" value;
})
cfg.themes
);
};
}