add flatpak to amd-workstation
This commit is contained in:
parent
b4ff7bdd6b
commit
8e45ef3c06
@ -12,6 +12,7 @@
|
||||
customProfiles.bluetooth
|
||||
customProfiles.cassowary
|
||||
customProfiles.emulators
|
||||
customProfiles.flatpak
|
||||
customProfiles.hoyo
|
||||
customProfiles.minecraft
|
||||
customProfiles.nicotine
|
||||
|
17
profiles/applications/flatpak.nix
Normal file
17
profiles/applications/flatpak.nix
Normal 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" ];
|
||||
};
|
||||
}
|
@ -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
|
||||
$ "
|
||||
|
Loading…
x
Reference in New Issue
Block a user