kvantum: add enable option
Missed previously, prefer gating enablement on real opt in. Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
parent
61463d50fc
commit
a8931b2575
3 changed files with 6 additions and 1 deletions
|
|
@ -10,6 +10,7 @@ let
|
|||
concatMapStringsSep
|
||||
generators
|
||||
literalExpression
|
||||
mkEnableOption
|
||||
mkIf
|
||||
mkOption
|
||||
types
|
||||
|
|
@ -30,6 +31,8 @@ in
|
|||
|
||||
{
|
||||
options.qt.kvantum = {
|
||||
enable = mkEnableOption "Kvantum configuration";
|
||||
|
||||
settings = mkOption {
|
||||
type = types.submodule {
|
||||
freeformType = types.attrsOf kvconfigSection;
|
||||
|
|
@ -113,7 +116,7 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
config = {
|
||||
config = mkIf cfg.enable {
|
||||
xdg.configFile = {
|
||||
"Kvantum" = mkIf (cfg.themes != [ ]) {
|
||||
recursive = true;
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@
|
|||
qt = {
|
||||
enable = true;
|
||||
kvantum = {
|
||||
enable = true;
|
||||
settings = {
|
||||
General = {
|
||||
theme = "KvAdapta";
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@
|
|||
qt = {
|
||||
enable = true;
|
||||
kvantum = {
|
||||
enable = true;
|
||||
settings = {
|
||||
general = {
|
||||
theme = "KvAdapta";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue