summaryrefslogtreecommitdiffstats
path: root/modules/desktop/apps/flatpak.nix
blob: 30e23630459f4b8183e21968fb1f45caed19b2d3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{
    config,
    options,
    lib,
    pkgs,
    ...
}: let
    flatpakConf = config.modules.desktop.apps.flatpak;
    configDir = config.nixosConfig.configDir;
in {
    options.modules.desktop.apps.flatpak = {
        enable = lib.mkOption {
            type = lib.types.bool;
            default = false;
        };
    };
    
    config = lib.mkIf (flatpakConf.enable) {
        services.flatpak.enable = true;
    };
}