moved flatpak module from apps to services

This commit is contained in:
Aly Raffauf 2024-04-21 22:21:20 -04:00
parent 753348bc6c
commit 4a74c75a70
5 changed files with 15 additions and 5 deletions

View file

@ -26,6 +26,9 @@
};
alyraffauf = {
services = {
flatpak.enable = true;
};
system = {
plymouth.enable = true;
zramSwap = {enable = true;};
@ -39,7 +42,6 @@
hyprland.enable = true;
};
apps = {
flatpak.enable = true;
steam.enable = true;
};
};

View file

@ -4,5 +4,5 @@
config,
...
}: {
imports = [./flatpak ./nicotine-plus ./steam ./podman ./virt-manager];
imports = [./nicotine-plus ./steam ./podman ./virt-manager];
}

View file

@ -3,5 +3,5 @@
pkgs,
...
}: {
imports = [./apps ./desktop ./homeLab ./system ./user];
imports = [./apps ./desktop ./homeLab ./services ./system ./user];
}

View file

@ -0,0 +1,8 @@
{
pkgs,
lib,
config,
...
}: {
imports = [./flatpak];
}

View file

@ -5,11 +5,11 @@
...
}: {
options = {
alyraffauf.apps.flatpak.enable =
alyraffauf.services.flatpak.enable =
lib.mkEnableOption "Enables flatpak support with GUI.";
};
config = lib.mkIf config.alyraffauf.apps.flatpak.enable {
config = lib.mkIf config.alyraffauf.services.flatpak.enable {
# Needed for Flatpaks
xdg.portal.enable = true;
services.flatpak.enable = true;