home: extract 'comma' into its own module

This commit is contained in:
Bruno BELANYI 2021-05-27 21:49:24 +02:00
parent da21e7a6f2
commit 6074958292
3 changed files with 16 additions and 1 deletions

15
home/comma.nix Normal file
View file

@ -0,0 +1,15 @@
{ config, lib, pkgs, ... }:
let
cfg = config.my.home.comma;
in
{
options.my.home.comma = with lib; {
enable = my.mkDisableOption "comma configuration";
};
config = lib.mkIf cfg.enable {
home.packages = with pkgs; [
ambroisie.comma
];
};
}