mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 07:13:55 -05:00
moved flatpak module from apps to services
This commit is contained in:
parent
753348bc6c
commit
4a74c75a70
|
@ -26,6 +26,9 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
alyraffauf = {
|
alyraffauf = {
|
||||||
|
services = {
|
||||||
|
flatpak.enable = true;
|
||||||
|
};
|
||||||
system = {
|
system = {
|
||||||
plymouth.enable = true;
|
plymouth.enable = true;
|
||||||
zramSwap = {enable = true;};
|
zramSwap = {enable = true;};
|
||||||
|
@ -39,7 +42,6 @@
|
||||||
hyprland.enable = true;
|
hyprland.enable = true;
|
||||||
};
|
};
|
||||||
apps = {
|
apps = {
|
||||||
flatpak.enable = true;
|
|
||||||
steam.enable = true;
|
steam.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -4,5 +4,5 @@
|
||||||
config,
|
config,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
imports = [./flatpak ./nicotine-plus ./steam ./podman ./virt-manager];
|
imports = [./nicotine-plus ./steam ./podman ./virt-manager];
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,5 +3,5 @@
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
imports = [./apps ./desktop ./homeLab ./system ./user];
|
imports = [./apps ./desktop ./homeLab ./services ./system ./user];
|
||||||
}
|
}
|
||||||
|
|
8
nixosModules/services/default.nix
Normal file
8
nixosModules/services/default.nix
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
imports = [./flatpak];
|
||||||
|
}
|
|
@ -5,11 +5,11 @@
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
options = {
|
options = {
|
||||||
alyraffauf.apps.flatpak.enable =
|
alyraffauf.services.flatpak.enable =
|
||||||
lib.mkEnableOption "Enables flatpak support with GUI.";
|
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
|
# Needed for Flatpaks
|
||||||
xdg.portal.enable = true;
|
xdg.portal.enable = true;
|
||||||
services.flatpak.enable = true;
|
services.flatpak.enable = true;
|
Loading…
Reference in a new issue