Main
This commit is contained in:
parent
fc0abdd4bb
commit
aca73cdd0f
73 changed files with 3873 additions and 381 deletions
|
|
@ -1,3 +1,13 @@
|
|||
# Flatpak (System Module)
|
||||
#
|
||||
# Provides:
|
||||
# - Flatpak package manager
|
||||
# - Flatpak service integration
|
||||
# - XDG portals for sandboxed apps
|
||||
#
|
||||
# Options:
|
||||
# - enable → Enable Flatpak system module
|
||||
#
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
|
|
@ -5,16 +15,22 @@ let
|
|||
in
|
||||
{
|
||||
options.nyx-module.system.flatpak = {
|
||||
enable = lib.mkEnableOption "Enable flatpak (system) module";
|
||||
|
||||
package = lib.mkOption {
|
||||
type = lib.types.package;
|
||||
default = pkgs.flatpak;
|
||||
description = "Package to install for flatpak.";
|
||||
};
|
||||
enable = lib.mkEnableOption "Enable Flatpak (system module)";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
environment.systemPackages = [ cfg.package ];
|
||||
services.flatpak.enable = true;
|
||||
|
||||
# Flatpak apps need XDG portals for proper desktop integration
|
||||
xdg.portal = {
|
||||
enable = true;
|
||||
extraPortals = with pkgs; [
|
||||
xdg-desktop-portal-gtk # For GTK desktops
|
||||
# xdg-desktop-portal-kde # Uncomment for KDE Plasma
|
||||
];
|
||||
};
|
||||
|
||||
# Optional explicit installation (not strictly needed)
|
||||
environment.systemPackages = [ pkgs.flatpak ];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue