summaryrefslogtreecommitdiff
path: root/features/user/services/flatpak.nix
diff options
context:
space:
mode:
authoroutremonde <outremonde@vivaldi.net>2025-06-10 20:32:00 -0400
committeroutremonde <outremonde@vivaldi.net>2025-06-10 20:32:00 -0400
commit9786eb8672213344d8d1b7bdef12bc94510b20db (patch)
treeb7d79440800c92d32187ab32c636b0830c94a610 /features/user/services/flatpak.nix
initialized repository
Former-commit-id: 84647f22b951a957b2b83885b612115d473f6626
Diffstat (limited to 'features/user/services/flatpak.nix')
-rw-r--r--features/user/services/flatpak.nix27
1 files changed, 27 insertions, 0 deletions
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"];
+ };
+ };
+}