From 21fb5e547ce5884790237bcd16517333b42d8d5e Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Mon, 16 Sep 2024 08:03:30 +0400 Subject: [PATCH] add flatpak module --- modules/desktop/default.nix | 1 + modules/desktop/flatpak/default.nix | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 modules/desktop/flatpak/default.nix diff --git a/modules/desktop/default.nix b/modules/desktop/default.nix index c6cb75fd..e604c43c 100644 --- a/modules/desktop/default.nix +++ b/modules/desktop/default.nix @@ -23,6 +23,7 @@ ./media ./dunst ./picom + ./flatpak # boot ./plymouth # vpn diff --git a/modules/desktop/flatpak/default.nix b/modules/desktop/flatpak/default.nix new file mode 100644 index 00000000..a8e94679 --- /dev/null +++ b/modules/desktop/flatpak/default.nix @@ -0,0 +1,14 @@ +{ inputs, outputs, options, config, lib, pkgs, ...}: +let + cfg = config.modules.desktop.flatpak; +in +{ + options.modules.desktop.flatpak = { + enable = lib.mkEnableOption false; + }; + + config = lib.mkIf cfg.enable { + # todo declarative thingies + services.flatpak.enable = true; + }; +}