fork/home-manager
git clone https://git.julia.blue/fork/home-manager
75790441
master
1{ config , lib , pkgs , ...} : 2 3with lib ; 4 5let 6 7cfg = config . programs . tint2 ; 8 9in { 10meta . maintainers = [ hm . maintainers . CarlosLoboxyz ]; 11 12options . programs . tint2 = { 13enable = 14mkEnableOption "tint2, a simple, unobtrusive and light panel for Xorg" ; 15 16package = mkOption { 17type = types . package ; 18default = pkgs . tint2 ; 19defaultText = literalExpression "pkgs.tint2" ; 20description = "Tint2 package to install." ; 21}; 22 23extraConfig = mkOption { 24type = types . lines ; 25default = "" ; 26description = '' 27Commands for tint2 that will be add to the {file}`tint2rc` 28file. 29'' ; 30}; 31}; 32 33config = mkIf cfg . enable { 34home . packages = [ cfg . package ]; 35 36xdg . configFile = { 37"tint2/tint2rc" = 38mkIf ( cfg . extraConfig != "" ) { text = cfg . extraConfig ; }; 39}; 40}; 41}