mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-07-12 15:42:39 +02:00
feat: nixpaks - add music/video dirs for firefox & qq
This commit is contained in:
@@ -34,6 +34,15 @@ mkNixPak {
|
|||||||
"org.mozilla.firefox_beta.*" = "own"; # firefox beta
|
"org.mozilla.firefox_beta.*" = "own"; # firefox beta
|
||||||
"org.mpris.MediaPlayer2.firefox.*" = "own";
|
"org.mpris.MediaPlayer2.firefox.*" = "own";
|
||||||
"org.freedesktop.NetworkManager" = "talk";
|
"org.freedesktop.NetworkManager" = "talk";
|
||||||
|
|
||||||
|
"org.gnome.Shell.Screencast" = "talk";
|
||||||
|
# System tray icon
|
||||||
|
"org.freedesktop.Notifications" = "talk";
|
||||||
|
"org.kde.StatusNotifierWatcher" = "talk";
|
||||||
|
# File Manager
|
||||||
|
"org.freedesktop.FileManager1" = "talk";
|
||||||
|
# Uses legacy StatusNotifier implementation
|
||||||
|
"org.kde.*" = "own";
|
||||||
};
|
};
|
||||||
|
|
||||||
bubblewrap = {
|
bubblewrap = {
|
||||||
@@ -45,8 +54,10 @@ mkNixPak {
|
|||||||
# NOTE: sloth.mkdir is used to create the directory if it does not exist!
|
# NOTE: sloth.mkdir is used to create the directory if it does not exist!
|
||||||
(sloth.mkdir (sloth.concat' sloth.homeDir "/.mozilla"))
|
(sloth.mkdir (sloth.concat' sloth.homeDir "/.mozilla"))
|
||||||
|
|
||||||
sloth.xdgDownloadDir
|
|
||||||
sloth.xdgDocumentsDir
|
sloth.xdgDocumentsDir
|
||||||
|
sloth.xdgDownloadDir
|
||||||
|
sloth.xdgMusicDir
|
||||||
|
sloth.xdgVideosDir
|
||||||
];
|
];
|
||||||
bind.ro = [
|
bind.ro = [
|
||||||
# To actually make Firefox run
|
# To actually make Firefox run
|
||||||
|
|||||||
@@ -30,8 +30,13 @@ mkNixPak {
|
|||||||
# ls -al /etc/profiles/per-user/ryan/share/dbus-1/services/
|
# ls -al /etc/profiles/per-user/ryan/share/dbus-1/services/
|
||||||
dbus.policies = {
|
dbus.policies = {
|
||||||
"org.gnome.Shell.Screencast" = "talk";
|
"org.gnome.Shell.Screencast" = "talk";
|
||||||
|
# System tray icon
|
||||||
"org.freedesktop.Notifications" = "talk";
|
"org.freedesktop.Notifications" = "talk";
|
||||||
"org.kde.StatusNotifierWatcher" = "talk";
|
"org.kde.StatusNotifierWatcher" = "talk";
|
||||||
|
# File Manager
|
||||||
|
"org.freedesktop.FileManager1" = "talk";
|
||||||
|
# Uses legacy StatusNotifier implementation
|
||||||
|
"org.kde.*" = "own";
|
||||||
};
|
};
|
||||||
bubblewrap = {
|
bubblewrap = {
|
||||||
# To trace all the home files QQ accesses, you can use the following nushell command:
|
# To trace all the home files QQ accesses, you can use the following nushell command:
|
||||||
@@ -41,8 +46,11 @@ mkNixPak {
|
|||||||
# given the read write permission to the following directories.
|
# given the read write permission to the following directories.
|
||||||
# NOTE: sloth.mkdir is used to create the directory if it does not exist!
|
# NOTE: sloth.mkdir is used to create the directory if it does not exist!
|
||||||
(sloth.mkdir (sloth.concat [sloth.xdgConfigHome "/QQ"]))
|
(sloth.mkdir (sloth.concat [sloth.xdgConfigHome "/QQ"]))
|
||||||
(sloth.mkdir (sloth.concat [sloth.xdgDocumentsDir "/QQ"]))
|
|
||||||
|
sloth.xdgDocumentsDir
|
||||||
sloth.xdgDownloadDir
|
sloth.xdgDownloadDir
|
||||||
|
sloth.xdgMusicDir
|
||||||
|
sloth.xdgVideosDir
|
||||||
];
|
];
|
||||||
sockets = {
|
sockets = {
|
||||||
x11 = false;
|
x11 = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user