From 9786eb8672213344d8d1b7bdef12bc94510b20db Mon Sep 17 00:00:00 2001 From: outremonde Date: Tue, 10 Jun 2025 20:32:00 -0400 Subject: initialized repository Former-commit-id: 84647f22b951a957b2b83885b612115d473f6626 --- features/user/services/flatpak.nix | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 features/user/services/flatpak.nix (limited to 'features/user/services/flatpak.nix') diff --git a/features/user/services/flatpak.nix b/features/user/services/flatpak.nix new file mode 100644 index 0000000..37225aa --- /dev/null +++ b/features/user/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"]; + }; + }; +} -- cgit v1.2.3