mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 22:11:33 +01:00
16 lines
403 B
Nix
16 lines
403 B
Nix
{ config, lib, ... }@moduleArgs:
|
|
{
|
|
options.myConfig.flatpak.enable = lib.mkEnableOption "" // {
|
|
default = moduleArgs.osConfig.myConfig.flatpak.enable or false;
|
|
};
|
|
|
|
config = lib.mkIf config.myConfig.flatpak.enable {
|
|
xdg = {
|
|
enable = true;
|
|
systemDirs.data = [
|
|
"/var/lib/flatpak/exports/share"
|
|
"/home/seb/.local/share/flatpak/exports/share"
|
|
];
|
|
};
|
|
};
|
|
}
|