Files
nix/modules/system/flatpak.nix
T
2026-10-17 23:55:49 -05:00

28 lines
664 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";
}];
update.auto.enable = true;
uninstallUnmanaged = true;
overrides = {
global = {
Context.sockets = [ "wayland" "!x11" "!fallback-x11" ];
};
};
};
};
};
}