mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-07-11 07:02:41 +02:00
refactor: nixpak apps
This commit is contained in:
@@ -79,12 +79,6 @@ mkNixPak {
|
|||||||
wayland = true;
|
wayland = true;
|
||||||
pipewire = true;
|
pipewire = true;
|
||||||
};
|
};
|
||||||
bind.dev = [
|
|
||||||
"/dev/shm" # Shared Memory
|
|
||||||
];
|
|
||||||
tmpfs = [
|
|
||||||
"/tmp"
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -72,6 +72,8 @@ in {
|
|||||||
"/etc/static/egl"
|
"/etc/static/egl"
|
||||||
];
|
];
|
||||||
bind.dev = [
|
bind.dev = [
|
||||||
|
"/dev/shm" # Shared Memory
|
||||||
|
|
||||||
# seems required when using nvidia as primary gpu
|
# seems required when using nvidia as primary gpu
|
||||||
"/dev/nvidia0"
|
"/dev/nvidia0"
|
||||||
"/dev/nvidiactl"
|
"/dev/nvidiactl"
|
||||||
@@ -79,6 +81,10 @@ in {
|
|||||||
"/dev/nvidia-uvm"
|
"/dev/nvidia-uvm"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
tmpfs = [
|
||||||
|
"/tmp"
|
||||||
|
];
|
||||||
|
|
||||||
env = {
|
env = {
|
||||||
XDG_DATA_DIRS = lib.mkForce (lib.makeSearchPath "share" [
|
XDG_DATA_DIRS = lib.mkForce (lib.makeSearchPath "share" [
|
||||||
iconTheme
|
iconTheme
|
||||||
|
|||||||
@@ -57,12 +57,6 @@ mkNixPak {
|
|||||||
wayland = true;
|
wayland = true;
|
||||||
pipewire = true;
|
pipewire = true;
|
||||||
};
|
};
|
||||||
bind.dev = [
|
|
||||||
"/dev/shm" # Shared Memory
|
|
||||||
];
|
|
||||||
tmpfs = [
|
|
||||||
"/tmp"
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -46,21 +46,17 @@ 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.homeDir "/.xwechat"]))
|
(sloth.mkdir (sloth.concat [sloth.homeDir "/.xwechat"]))
|
||||||
(sloth.mkdir (sloth.concat [sloth.xdgDocumentsDir "/xwechat_files"]))
|
|
||||||
(sloth.mkdir (sloth.concat [sloth.xdgDocumentsDir "/WeChat_Data/"]))
|
sloth.xdgDocumentsDir
|
||||||
sloth.xdgDownloadDir
|
sloth.xdgDownloadDir
|
||||||
|
sloth.xdgMusicDir
|
||||||
|
sloth.xdgVideosDir
|
||||||
];
|
];
|
||||||
sockets = {
|
sockets = {
|
||||||
x11 = false;
|
x11 = false;
|
||||||
wayland = true;
|
wayland = true;
|
||||||
pipewire = true;
|
pipewire = true;
|
||||||
};
|
};
|
||||||
bind.dev = [
|
|
||||||
"/dev/shm" # Shared Memory
|
|
||||||
];
|
|
||||||
tmpfs = [
|
|
||||||
"/tmp"
|
|
||||||
];
|
|
||||||
|
|
||||||
env = {
|
env = {
|
||||||
# Hidpi scale
|
# Hidpi scale
|
||||||
|
|||||||
Reference in New Issue
Block a user