This commit is contained in:
2025-02-16 19:40:39 +01:00
parent 2e5dcfe151
commit fa0407fbd6
31 changed files with 919 additions and 3047 deletions

View File

@@ -0,0 +1,28 @@
{
config,
lib,
pkgs,
...
}: let
inherit (lib) mkIf mkEnableOption;
cfg = config.nixos.services.flatpak;
in {
options = {
nixos.services.flatpak.enable = mkEnableOption "Enables flatpaks and gnome software";
};
config = mkIf cfg.enable {
services.flatpak.enable = true;
environment.systemPackages = with pkgs; [
gnome-software
];
systemd.services.flatpak-repo = {
wantedBy = ["multi-user.target"];
requires = ["network-online.target"];
after = ["network-online.target"];
path = [pkgs.flatpak];
script = ''
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
'';
};
};
}