Files
nix/modules/system/flatpak.nix
T
2026-10-16 08:45:52 -05:00

31 lines
796 B
Nix

{ inputs, lib, ... }: {
flake-file.inputs.nix-flatpak.url = "github:gmodena/nix-flatpak/?ref=latest";
den.aspects.system.flatpak = {
nixos = {
imports = [ inputs.nix-flatpak.nixosModules.nix-flatpak ];
services.flatpak = {
enable = true;
remotes = lib.mkOptionDefault [{
name = "flathub-beta";
location = "https://flathub.org/beta-repo/flathub-beta.flatpakrepo";
} {
name = "RSILauncher";
location = "https://mactan-sc.github.io/rsilauncher/RSILauncher.flatpakrepo";
}];
update.auto.enable = true;
uninstallUnmanaged = true;
overrides = {
global = {
Context.sockets = [ "wayland" "!x11" "!fallback-x11" ];
};
};
};
};
};
}