This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{ lib, config, ... }:
|
||||
{ lib, config, ... }:
|
||||
let
|
||||
inherit (lib) mkIf mkOption types;
|
||||
|
||||
@@ -21,10 +21,10 @@ let
|
||||
];
|
||||
|
||||
flatpaks =
|
||||
(if config.smayzy.flatpak.gaming.enable then gaming else [])
|
||||
++ (if config.smayzy.flatpak.dev.enable then dev else [])
|
||||
++ (if config.smayzy.flatpak.utils.enable then utils else [])
|
||||
++ (if config.smayzy.flatpak.media.enable then media else []);
|
||||
(if config.smayzy.flatpak.gaming.enable then gaming else [ ])
|
||||
++ (if config.smayzy.flatpak.dev.enable then dev else [ ])
|
||||
++ (if config.smayzy.flatpak.utils.enable then utils else [ ])
|
||||
++ (if config.smayzy.flatpak.media.enable then media else [ ]);
|
||||
in
|
||||
{
|
||||
options.smayzy.flatpak = mkOption {
|
||||
@@ -35,25 +35,25 @@ in
|
||||
default = false;
|
||||
description = "enable flatpak support";
|
||||
};
|
||||
|
||||
|
||||
gaming.enable = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = "enable gaming flatpaks";
|
||||
};
|
||||
|
||||
|
||||
dev.enable = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = "enable dev flatpaks";
|
||||
};
|
||||
|
||||
|
||||
utils.enable = mkOption {
|
||||
type = types.bool;
|
||||
default = true;
|
||||
description = "enable utils flatpak";
|
||||
};
|
||||
|
||||
|
||||
media.enable = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
|
||||
Reference in New Issue
Block a user