mirror of
https://github.com/js0ny/dotfiles.git
synced 2026-03-22 18:52:43 +00:00
feat(wechat): bwrapped wechat from nur
This commit is contained in:
parent
0e8eae72d1
commit
f33575d2ff
6 changed files with 46 additions and 1 deletions
|
|
@ -107,6 +107,7 @@
|
||||||
zen-browser = zen-browser.packages.x86_64-linux.zen-browser;
|
zen-browser = zen-browser.packages.x86_64-linux.zen-browser;
|
||||||
})
|
})
|
||||||
(import ./overlays/steamcmd.nix)
|
(import ./overlays/steamcmd.nix)
|
||||||
|
(import ./overlays/wechat-uos-sandboxed.nix)
|
||||||
];
|
];
|
||||||
forSystem = system:
|
forSystem = system:
|
||||||
import nixpkgs {
|
import nixpkgs {
|
||||||
|
|
|
||||||
20
nixcfgs/overlays/wechat-uos-sandboxed.nix
Normal file
20
nixcfgs/overlays/wechat-uos-sandboxed.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
final: prev: {
|
||||||
|
wechat-uos-sandboxed = prev.nur.repos.xddxdd.wechat-uos-sandboxed.override {
|
||||||
|
buildFHSEnvBubblewrap = args:
|
||||||
|
prev.buildFHSEnvBubblewrap (
|
||||||
|
args
|
||||||
|
// {
|
||||||
|
extraPreBwrapCmds =
|
||||||
|
''
|
||||||
|
if [[ -z "''${WECHAT_DATA_DIR}" ]]; then
|
||||||
|
WECHAT_DATA_DIR="''${WECHAT_SANDBOX_DIR:-$HOME/.sandbox/.per-app/wechat}"
|
||||||
|
fi
|
||||||
|
''
|
||||||
|
+ (if args ? extraPreBwrapCmds then args.extraPreBwrapCmds else "");
|
||||||
|
targetPkgs =
|
||||||
|
pkgs:
|
||||||
|
(if args ? targetPkgs then args.targetPkgs pkgs else []) ++ [pkgs.util-linux];
|
||||||
|
}
|
||||||
|
);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -58,7 +58,7 @@
|
||||||
);
|
);
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
../../../hardening/nixpaks/default.nix
|
../../../hardening/nixpaks
|
||||||
];
|
];
|
||||||
|
|
||||||
home.packages = with pkgs;
|
home.packages = with pkgs;
|
||||||
|
|
|
||||||
9
nixcfgs/users/js0ny/programs/sandboxed.nix
Normal file
9
nixcfgs/users/js0ny/programs/sandboxed.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
{config, ...}: let
|
||||||
|
home = config.home.homeDirectory;
|
||||||
|
user = config.home.username;
|
||||||
|
in {
|
||||||
|
systemd.user.tmpfiles.rules = [
|
||||||
|
"d ${home}/.sandbox/exchange 0755 ${user} users -"
|
||||||
|
"d ${home}/.sandbox/downloads 0755 ${user} users -"
|
||||||
|
];
|
||||||
|
}
|
||||||
12
nixcfgs/users/js0ny/programs/social/wechat.nix
Normal file
12
nixcfgs/users/js0ny/programs/social/wechat.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
systemd.user.tmpfiles.rules = [
|
||||||
|
"d ${config.home.homeDirectory}/.sandbox/.per-app/wechat 0755 ${config.home.username} users -"
|
||||||
|
];
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
wechat-uos-sandboxed
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
@ -10,6 +10,8 @@ in {
|
||||||
# General config
|
# General config
|
||||||
./default.nix
|
./default.nix
|
||||||
|
|
||||||
|
./programs/sandboxed.nix
|
||||||
|
|
||||||
# Use Gnome-keyring for GUI setup
|
# Use Gnome-keyring for GUI setup
|
||||||
../../modules/home/gnome-keyrings.nix
|
../../modules/home/gnome-keyrings.nix
|
||||||
|
|
||||||
|
|
@ -73,6 +75,7 @@ in {
|
||||||
# Social
|
# Social
|
||||||
./programs/social/discord.nix
|
./programs/social/discord.nix
|
||||||
./programs/social/telegram.nix
|
./programs/social/telegram.nix
|
||||||
|
./programs/social/wechat.nix
|
||||||
|
|
||||||
# Utilities & misc
|
# Utilities & misc
|
||||||
# ./programs/xilinx.nix
|
# ./programs/xilinx.nix
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue