add flatpak to amd-workstation

This commit is contained in:
Dmitriy Kholkin 2024-10-24 01:42:29 +03:00
parent b4ff7bdd6b
commit 8e45ef3c06
Signed by: AtaraxiaDev
GPG Key ID: FD266B810DF48DF2
3 changed files with 19 additions and 0 deletions

View File

@ -12,6 +12,7 @@
customProfiles.bluetooth
customProfiles.cassowary
customProfiles.emulators
customProfiles.flatpak
customProfiles.hoyo
customProfiles.minecraft
customProfiles.nicotine

View File

@ -0,0 +1,17 @@
{ pkgs, ... }: {
services.flatpak.enable = true;
xdg.portal.enable = true;
systemd.services.flatpak-repo = {
wantedBy = [ "multi-user.target" ];
path = [ pkgs.flatpak ];
script = ''
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
'';
};
persist.state = {
directories = [ "/var/lib/flatpak" ];
homeDirectories = [ ".local/share/flatpak" ".var" ];
};
}

View File

@ -150,6 +150,7 @@
}
XDG_DATA_DIRS=$XDG_DATA_DIRS:$GSETTINGS_SCHEMAS_PATH
export XDG_DATA_DIRS=$XDG_DATA_DIRS:/usr/share:/var/lib/flatpak/exports/share:$HOME/.local/share/flatpak/exports/share
PS1="$PS1
$ "