Using discord on flatpak

This commit is contained in:
2023-04-19 15:11:10 +09:00
parent 12c82f13b6
commit 827f1769bb
5 changed files with 26 additions and 3 deletions

View File

@@ -31,7 +31,6 @@ in {
firefox
mpv
xdg-utils
discord
swaylock
swayidle
zathura

View File

@@ -14,7 +14,6 @@ in {
home.packages = with pkgs; [
nur.repos.ocfox.swww
xorg.xprop
discord
kitty
grim
slurp

View File

@@ -6,6 +6,7 @@
}: let
cfg = config.fonts;
in {
imports = [./flatpak_fonts.nix];
options.fonts = {enable = lib.mkEnableOption "fonts";};
config = lib.mkIf cfg.enable {
console = {

View File

@@ -0,0 +1,24 @@
{
pkgs,
config,
...
}: {
system.fsPackages = [pkgs.bindfs];
fileSystems = let
mkRoSymBind = path: {
device = path;
fsType = "fuse.bindfs";
options = ["ro" "resolve-symlinks" "x-gvfs-hide"];
};
aggregatedFonts = pkgs.buildEnv {
name = "system-fonts";
paths = config.fonts.fonts;
pathsToLink = ["/share/fonts"];
};
in {
# Create an FHS mount to support flatpak host icons/fonts
# icons don't work, don't know why, don't care
# "/usr/share/icons" = mkRoSymBind (config.system.path + "/share/icons");
"/usr/share/fonts" = mkRoSymBind (aggregatedFonts + "/share/fonts");
};
}

View File

@@ -55,7 +55,7 @@ in {
".cache/flatpak"
".local/share/atuin"
# Cache for sessions (keep website logged in, plugin downloaded...)
"./mozilla"
".mozilla"
".config/google-chrome"
".config/discord"
# Don't reinstall plugins on reboot