Skip to content

Commit

Permalink
nixos/services/flatpak: init
Browse files Browse the repository at this point in the history
  • Loading branch information
khaneliman committed Dec 22, 2024
1 parent 283ed1a commit a7d1708
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions modules/nixos/services/flatpak/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
config,
lib,
namespace,
...
}:
let
inherit (lib) mkIf;
inherit (lib.${namespace}) mkBoolOpt;

cfg = config.${namespace}.services.flatpak;
in
{
options.${namespace}.services.flatpak = {
enable = mkBoolOpt false "Whether or not to enable flatpak support.";
};

config = mkIf cfg.enable { services.flatpak.enable = true; };
}

0 comments on commit a7d1708

Please sign in to comment.