user/flatpak: make some horror
Signed-off-by: unexplrd <unexplrd@linerds.us>
This commit is contained in:
@ -1,4 +1,8 @@
|
|||||||
{inputs, ...}: {
|
{
|
||||||
|
lib,
|
||||||
|
inputs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
imports = with inputs; [
|
imports = with inputs; [
|
||||||
nix-flatpak.homeManagerModules.nix-flatpak
|
nix-flatpak.homeManagerModules.nix-flatpak
|
||||||
];
|
];
|
||||||
@ -15,45 +19,63 @@
|
|||||||
location = "https://dl.flathub.org/repo/flathub.flatpakrepo";
|
location = "https://dl.flathub.org/repo/flathub.flatpakrepo";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
packages = [
|
packages =
|
||||||
# browsers
|
[
|
||||||
"app.zen_browser.zen"
|
# browsers
|
||||||
"io.github.ungoogled_software.ungoogled_chromium"
|
"app.zen_browser.zen"
|
||||||
"net.mullvad.MullvadBrowser"
|
"com.vivaldi.Vivaldi"
|
||||||
"org.torproject.torbrowser-launcher"
|
"net.mullvad.MullvadBrowser"
|
||||||
|
"org.torproject.torbrowser-launcher"
|
||||||
# misc
|
]
|
||||||
"com.bitwarden.desktop"
|
++ [
|
||||||
"com.github.tchx84.Flatseal"
|
# editing
|
||||||
"com.logseq.Logseq"
|
"com.github.PintaProject.Pinta"
|
||||||
"com.obsproject.Studio"
|
"org.gimp.GIMP"
|
||||||
"com.usebottles.bottles"
|
"org.kde.kdenlive"
|
||||||
"de.capypara.FieldMonitor"
|
]
|
||||||
"de.haeckerfelix.Fragments"
|
++ [
|
||||||
"org.nicotine_plus.Nicotine"
|
# chatting
|
||||||
|
"im.riot.Riot"
|
||||||
# chatting
|
"io.github.kukuruzka165.materialgram"
|
||||||
"im.riot.Riot"
|
"io.github.spacingbat3.webcord"
|
||||||
"io.github.kukuruzka165.materialgram"
|
"org.mozilla.Thunderbird"
|
||||||
"io.github.spacingbat3.webcord"
|
"org.signal.Signal"
|
||||||
"org.mozilla.Thunderbird"
|
# "org.telegram.desktop"
|
||||||
"org.signal.Signal"
|
]
|
||||||
# "org.telegram.desktop"
|
++ [
|
||||||
|
# media
|
||||||
# media
|
"io.bassi.Amberol"
|
||||||
"io.bassi.Amberol"
|
"io.freetubeapp.FreeTube"
|
||||||
"io.freetubeapp.FreeTube"
|
"org.atheme.audacious"
|
||||||
"org.atheme.audacious"
|
]
|
||||||
|
++ [
|
||||||
# gaming
|
# gaming
|
||||||
"com.heroicgameslauncher.hgl"
|
"com.heroicgameslauncher.hgl"
|
||||||
"com.valvesoftware.Steam"
|
"com.valvesoftware.Steam"
|
||||||
"net.lutris.Lutris"
|
"net.lutris.Lutris"
|
||||||
"org.prismlauncher.PrismLauncher"
|
"org.prismlauncher.PrismLauncher"
|
||||||
"org.freedesktop.Platform.VulkanLayer.MangoHud//24.08"
|
"org.freedesktop.Platform.VulkanLayer.MangoHud//24.08"
|
||||||
"org.freedesktop.Platform.VulkanLayer.gamescope//24.08"
|
"org.freedesktop.Platform.VulkanLayer.gamescope//24.08"
|
||||||
];
|
]
|
||||||
overrides = {
|
++ [
|
||||||
|
# misc
|
||||||
|
"com.bitwarden.desktop"
|
||||||
|
"com.github.tchx84.Flatseal"
|
||||||
|
"com.logseq.Logseq"
|
||||||
|
"com.obsproject.Studio"
|
||||||
|
"com.usebottles.bottles"
|
||||||
|
"de.capypara.FieldMonitor"
|
||||||
|
"de.haeckerfelix.Fragments"
|
||||||
|
"org.nicotine_plus.Nicotine"
|
||||||
|
];
|
||||||
|
overrides = let
|
||||||
|
homeNoNetwork = {
|
||||||
|
Context.share = ["!network"];
|
||||||
|
Context.filesystems = ["home"];
|
||||||
|
};
|
||||||
|
game.sockets = ["x11" "wayland"];
|
||||||
|
game.folder = folder: ["/storage/games/${folder}" "~/games/${folder}"];
|
||||||
|
in {
|
||||||
"global" = {
|
"global" = {
|
||||||
Context = {
|
Context = {
|
||||||
sockets = ["wayland" "!x11" "!fallback-x11"];
|
sockets = ["wayland" "!x11" "!fallback-x11"];
|
||||||
@ -74,35 +96,29 @@
|
|||||||
};
|
};
|
||||||
"com.valvesoftware.Steam" = {
|
"com.valvesoftware.Steam" = {
|
||||||
Context = {
|
Context = {
|
||||||
sockets = ["x11" "wayland"];
|
inherit (game) sockets;
|
||||||
filesystems = ["/storage/games/steam"];
|
filesystems = game.folder "steam";
|
||||||
};
|
};
|
||||||
Environment.STEAM_FORCE_DESKTOPUI_SCALING = "1.3";
|
Environment.STEAM_FORCE_DESKTOPUI_SCALING = "1.3";
|
||||||
};
|
};
|
||||||
"org.signal.Signal" = {
|
|
||||||
Environment.SIGNAL_PASSWORD_STORE = "gnome-libsecret";
|
|
||||||
};
|
|
||||||
"com.obsproject.Studio" = {
|
|
||||||
Context.filesystems = ["~/vids"];
|
|
||||||
};
|
|
||||||
"com.logseq.Logseq" = {
|
|
||||||
Context.filesystems = [
|
|
||||||
"~/docs/logseq"
|
|
||||||
"~/docs/nure/2025/logseq"
|
|
||||||
"~/syncthing/logseq"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
"net.lutris.Lutris".Context = {
|
"net.lutris.Lutris".Context = {
|
||||||
sockets = ["x11" "wayland"];
|
inherit (game) sockets;
|
||||||
filesystems = ["/storage/games/lutris" "~/games/lutris"];
|
filesystems = game.folder "lutris";
|
||||||
};
|
};
|
||||||
"com.heroicgameslauncher.hgl".Context = {
|
"com.heroicgameslauncher.hgl".Context = {
|
||||||
sockets = ["x11" "wayland"];
|
inherit (game) sockets;
|
||||||
filesystems = ["/storage/games/heroic" "~/games/heroic"];
|
filesystems = game.folder "heroic";
|
||||||
};
|
|
||||||
"com.usebottles.Bottles" = {
|
|
||||||
Context.sockets = ["x11" "wayland"];
|
|
||||||
};
|
};
|
||||||
|
"com.github.PintaProject.Pinta" = {inherit (homeNoNetwork) Context;};
|
||||||
|
"com.logseq.Logseq" = {inherit (homeNoNetwork) Context;};
|
||||||
|
"com.obsproject.Studio" = {inherit (homeNoNetwork) Context;};
|
||||||
|
"com.usebottles.Bottles".Context = {inherit (game) sockets;};
|
||||||
|
"io.bassi.Amberol" = {inherit (homeNoNetwork) Context;};
|
||||||
|
"io.freetubeapp.FreeTube" = {inherit (homeNoNetwork) Context;};
|
||||||
|
"org.atheme.audacious" = {inherit (homeNoNetwork) Context;};
|
||||||
|
"org.gimp.GIMP" = {inherit (homeNoNetwork) Context;};
|
||||||
|
"org.kde.kdenlive" = {inherit (homeNoNetwork) Context;};
|
||||||
|
"org.signal.Signal".Environment.SIGNAL_PASSWORD_STORE = "gnome-libsecret";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user