Initial import

This commit is contained in:
Robert Helgesson 2017-01-07 19:16:26 +01:00
parent e4c63eb66a
commit d7d02c3ce8
No known key found for this signature in database
GPG key ID: C3DB11069E65DC86
26 changed files with 1749 additions and 0 deletions

View file

@ -0,0 +1,28 @@
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.programs.beets;
in
{
options = {
programs.beets = {
settings = mkOption {
type = types.attrs;
default = {};
description = "Configuration written to ~/.config/beets/config.yaml";
};
};
};
config = mkIf (cfg.settings != {}) {
home.packages = [ pkgs.beets ];
home.file.".config/beets/config.yaml".text =
builtins.toJSON config.programs.beets.settings;
};
}