mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-07-09 06:05:10 +02:00
fix: shoukei - hardening
This commit is contained in:
@@ -9,14 +9,30 @@
|
|||||||
{
|
{
|
||||||
appimageTools,
|
appimageTools,
|
||||||
fetchurl,
|
fetchurl,
|
||||||
|
stdenvNoCC,
|
||||||
}: let
|
}: let
|
||||||
pname = "wechat";
|
pname = "wechat";
|
||||||
# https://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/by-name/we/wechat/package.nix
|
# https://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/by-name/we/wechat/package.nix
|
||||||
version = "4.0.1.11";
|
sources = {
|
||||||
src = fetchurl {
|
aarch64-linux = {
|
||||||
url = "https://web.archive.org/web/20250512110825if_/https://dldir1v6.qq.com/weixin/Universal/Linux/WeChatLinux_x86_64.AppImage";
|
version = "4.0.1.11";
|
||||||
hash = "sha256-gBWcNQ1o1AZfNsmu1Vi1Kilqv3YbR+wqOod4XYAeVKo=";
|
src = fetchurl {
|
||||||
|
url = "https://web.archive.org/web/20250512112413if_/https://dldir1v6.qq.com/weixin/Universal/Linux/WeChatLinux_arm64.AppImage";
|
||||||
|
hash = "sha256-Rg+FWNgOPC02ILUskQqQmlz1qNb9AMdvLcRWv7NQhGk=";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
x86_64-linux = {
|
||||||
|
version = "4.0.1.11";
|
||||||
|
src = fetchurl {
|
||||||
|
url = "https://web.archive.org/web/20250512110825if_/https://dldir1v6.qq.com/weixin/Universal/Linux/WeChatLinux_x86_64.AppImage";
|
||||||
|
hash = "sha256-gBWcNQ1o1AZfNsmu1Vi1Kilqv3YbR+wqOod4XYAeVKo=";
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
inherit (stdenvNoCC.hostPlatform) system;
|
||||||
|
inherit (sources.${system} or (throw "Unsupported system: ${system}")) version src;
|
||||||
|
|
||||||
# https://github.com/NixOS/nixpkgs/blob/master/pkgs/by-name/we/wechat/linux.nix
|
# https://github.com/NixOS/nixpkgs/blob/master/pkgs/by-name/we/wechat/linux.nix
|
||||||
appimageContents = appimageTools.extract {
|
appimageContents = appimageTools.extract {
|
||||||
inherit pname version src;
|
inherit pname version src;
|
||||||
|
|||||||
@@ -19,6 +19,10 @@
|
|||||||
"modules/nixos/desktop.nix"
|
"modules/nixos/desktop.nix"
|
||||||
# host specific
|
# host specific
|
||||||
"hosts/12kingdoms-${name}"
|
"hosts/12kingdoms-${name}"
|
||||||
|
# nixos hardening
|
||||||
|
# "hardening/profiles/default.nix"
|
||||||
|
"hardening/nixpaks"
|
||||||
|
"hardening/bwraps"
|
||||||
];
|
];
|
||||||
home-modules = map mylib.relativeToRoot [
|
home-modules = map mylib.relativeToRoot [
|
||||||
# common
|
# common
|
||||||
|
|||||||
Reference in New Issue
Block a user