no config file

This commit is contained in:
ChaotiCryptidz 2022-10-22 21:28:38 +01:00
parent 2556631e6a
commit 3eb010b21c
No known key found for this signature in database
2 changed files with 0 additions and 44 deletions

View file

@ -12,8 +12,6 @@
outputs = { self, nixpkgs, utils, ... }:
{
hmModule = import ./hm-module.nix;
overlay = final: prev:
let system = final.system;
in {

View file

@ -1,42 +0,0 @@
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.programs.musicutil;
yamlFormat = pkgs.formats.yaml { };
in {
options = {
programs.musicutil = {
enable = mkOption {
type = types.bool;
default = false;
};
package = mkOption {
type = types.package;
default = pkgs.musicutil;
};
settings = {
log_level = mkOption {
type = types.str;
default = "info";
};
cache = mkOption {
type = types.bool;
default = false;
};
cache_dir = mkOption {
type = types.str;
default = "source_dir";
};
};
};
};
config = mkIf cfg.enable {
home.packages = [ cfg.package ];
xdg.configFile."musicutil.yaml".source =
yamlFormat.generate "musicutil-config" cfg.settings;
};
}