summaryrefslogtreecommitdiff
path: root/home-manager/features/services/flatpak.nix
diff options
context:
space:
mode:
authortriethyl <triethylammonium@pm.me>2025-09-02 10:48:21 -0400
committertriethyl <triethylammonium@pm.me>2025-09-02 10:48:21 -0400
commit31c316d19cd974bb81a5d6de62142ff24db1c78e (patch)
treecb941422c76cb8953830a8d58c8e14dca1a10319 /home-manager/features/services/flatpak.nix
parent1c21018347aa277caba74e554cb8d1b1e7fc6bed (diff)
reorganized directory structure
Diffstat (limited to 'home-manager/features/services/flatpak.nix')
-rw-r--r--home-manager/features/services/flatpak.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/home-manager/features/services/flatpak.nix b/home-manager/features/services/flatpak.nix
new file mode 100644
index 0000000..37225aa
--- /dev/null
+++ b/home-manager/features/services/flatpak.nix
@@ -0,0 +1,27 @@
+{
+ config,
+ pkgs,
+ lib,
+ inputs,
+ ...
+}: let
+ cfg = config.features.services.flatpak;
+in {
+ imports = [inputs.nix-flatpak.homeManagerModules.nix-flatpak];
+ options.features.services.flatpak = {
+ enable = lib.mkEnableOption "flatpak";
+ packages = lib.mkOption {
+ type = lib.types.listOf lib.types.str;
+ default = [];
+ description = "A list of flatpaks to install.";
+ };
+ };
+ config = lib.mkIf cfg.enable {
+ home.packages = [pkgs.flatpak];
+ services.flatpak = {
+ enable = true;
+ packages = cfg.packages;
+ overrides.global.Context.sockets = ["wayland" "!x11" "!fallback-x11"];
+ };
+ };
+}