mirror of
https://github.com/zoriya/flake.git
synced 2025-12-06 06:36:19 +00:00
Using discord on flatpak
This commit is contained in:
@@ -31,7 +31,6 @@ in {
|
||||
firefox
|
||||
mpv
|
||||
xdg-utils
|
||||
discord
|
||||
swaylock
|
||||
swayidle
|
||||
zathura
|
||||
|
||||
@@ -14,7 +14,6 @@ in {
|
||||
home.packages = with pkgs; [
|
||||
nur.repos.ocfox.swww
|
||||
xorg.xprop
|
||||
discord
|
||||
kitty
|
||||
grim
|
||||
slurp
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
24
modules/nixos/fonts/flatpak_fonts.nix
Normal file
24
modules/nixos/fonts/flatpak_fonts.nix
Normal 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");
|
||||
};
|
||||
}
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user