home,nixpak: fix firefox launching issue

This commit is contained in:
Guanran Wang 2023-11-14 11:28:47 +08:00
parent 64a10c8f06
commit 2e49d687d2
Signed by: nyancat
SSH key fingerprint: SHA256:8oWGKciPALWut/6WA27oFKofX+6Wtc0gQnsefXLQx/8
2 changed files with 11 additions and 2 deletions

View file

@ -24,6 +24,11 @@
# Specified in https://github.com/schizofox/schizofox/blob/main/modules/hm/default.nix # Specified in https://github.com/schizofox/schizofox/blob/main/modules/hm/default.nix
# I really don't have any idea what am I doing, it just works™ # I really don't have any idea what am I doing, it just works™
dbus.policies = {
"org.mozilla.firefox.*" = "own";
#"org.mozilla.firefox_beta.*" = "own";
};
bubblewrap = let bubblewrap = let
envSuffix = envKey: sloth.concat' (sloth.env envKey); envSuffix = envKey: sloth.concat' (sloth.env envKey);
in { in {
@ -38,7 +43,7 @@
"/etc/localtime" "/etc/localtime"
"/sys/bus/pci" "/sys/bus/pci"
["${pkgs.firefox}/lib/firefox" "/app/etc/firefox"] ["${config.app.package}/lib/firefox" "/app/etc/firefox"]
(sloth.concat' sloth.xdgConfigHome "/dconf") (sloth.concat' sloth.xdgConfigHome "/dconf")
# https://github.com/nixpak/pkgs/pull/22 # https://github.com/nixpak/pkgs/pull/22

View file

@ -24,6 +24,10 @@
# Specified in https://github.com/schizofox/schizofox/blob/main/modules/hm/default.nix # Specified in https://github.com/schizofox/schizofox/blob/main/modules/hm/default.nix
# I really don't have any idea what am I doing, it just works™ # I really don't have any idea what am I doing, it just works™
dbus.policies = {
"io.gitlab.librewolf.*" = "own";
};
bubblewrap = let bubblewrap = let
envSuffix = envKey: sloth.concat' (sloth.env envKey); envSuffix = envKey: sloth.concat' (sloth.env envKey);
in { in {
@ -38,7 +42,7 @@
"/etc/localtime" "/etc/localtime"
"/sys/bus/pci" "/sys/bus/pci"
["${pkgs.firefox}/lib/firefox" "/app/etc/firefox"] ["${config.app.package}/lib/firefox" "/app/etc/firefox"]
(sloth.concat' sloth.xdgConfigHome "/dconf") (sloth.concat' sloth.xdgConfigHome "/dconf")
# https://github.com/nixpak/pkgs/pull/22 # https://github.com/nixpak/pkgs/pull/22