17 lines
312 B
Nix
17 lines
312 B
Nix
|
{ config, lib, ... }:
|
||
|
|
||
|
with lib;
|
||
|
let
|
||
|
cfg = config.modules.system.apps.flatpak;
|
||
|
in
|
||
|
{
|
||
|
options.modules.system.apps.flatpak = {
|
||
|
enable = mkEnableOption ''
|
||
|
Enable flatpak
|
||
|
'';
|
||
|
};
|
||
|
|
||
|
config = mkIf cfg.enable {
|
||
|
services.flatpak.enable = true; # Important can't be enabled from home-manager
|
||
|
};
|
||
|
}
|