home: themes: setup theme types for i3

This commit is contained in:
Antoine Martin 2021-04-21 04:05:19 +02:00
parent 0cdb05ecf1
commit 8dff0e21e1
4 changed files with 215 additions and 0 deletions

9
home/themes/color.nix Normal file
View file

@ -0,0 +1,9 @@
{ lib }:
let
mkColorOption = with lib; {default ? "#000000", description ? "" }: mkOption {
inherit description default;
example = "#abcdef";
type = types.strMatching "#[0-9a-f]{6}";
};
in
mkColorOption