From a7d1708d7b757c8bda16f52b151976718a08a8d2 Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Sun, 22 Dec 2024 10:17:46 -0600 Subject: [PATCH] nixos/services/flatpak: init --- modules/nixos/services/flatpak/default.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 modules/nixos/services/flatpak/default.nix diff --git a/modules/nixos/services/flatpak/default.nix b/modules/nixos/services/flatpak/default.nix new file mode 100644 index 00000000..a314fcde --- /dev/null +++ b/modules/nixos/services/flatpak/default.nix @@ -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; }; +}