This repository has been archived on 2023-08-08. You can view files and clone it, but cannot push or open issues or pull requests.
nil/modules/system/flatpak.nix
James Patrick e48a3e8e44 Added flatpak
I would like to get this a little simpler so you don't have to manually
add the remote. But this is pretty trivial to do. I'll revisit this later.
2021-12-14 01:06:17 -05:00

26 lines
539 B
Nix

{ config, lib, pkgs, ... }:
let
cfg = config.systems.flatpak;
graphical = config.graphical;
in with lib; {
options = {
systems.flatpak = {
enable = mkOption {
default = graphical.enable;
type = with types; bool;
description = "When they tried to do docker for GUIs";
};
};
};
config = mkIf cfg.enable {
services.flatpak.enable = true;
xdg.portal = {
enable = true;
extraPortals =
[ pkgs.xdg-desktop-portal-gtk pkgs.xdg-desktop-portal-wlr ];
};
};
}