2022-08-11 05:44:58 +03:00
|
|
|
{
|
2022-08-23 08:18:37 +03:00
|
|
|
config,
|
2022-08-11 05:44:58 +03:00
|
|
|
inputs,
|
|
|
|
pkgs,
|
2022-09-02 16:16:07 +03:00
|
|
|
lib,
|
2022-08-11 05:44:58 +03:00
|
|
|
...
|
2022-12-06 22:03:04 +03:00
|
|
|
}: {
|
2022-08-23 08:18:37 +03:00
|
|
|
home.persistence."${config.system.persistDir}${config.home.homeDirectory}".directories = [
|
2023-09-10 21:40:39 +03:00
|
|
|
".config/ArmCord"
|
2022-08-23 08:18:37 +03:00
|
|
|
];
|
2022-11-04 00:59:34 +03:00
|
|
|
home.packages = let
|
|
|
|
flags = [
|
2023-09-10 21:40:39 +03:00
|
|
|
# "--flag-switches-begin"
|
|
|
|
# "--enable-features=UseOzonePlatform,WebRTCPipeWireCapturer"
|
|
|
|
# "--flag-switches-end"
|
|
|
|
# "--ozone-platform=wayland"
|
|
|
|
# "--enable-webrtc-pipewire-capturer"
|
|
|
|
# "--disable-gpu-memory-buffer-video-frames"
|
|
|
|
# "--enable-accelerated-mjpeg-decode"
|
|
|
|
# "--enable-accelerated-video"
|
|
|
|
# "--enable-gpu-rasterization"
|
|
|
|
# "--enable-native-gpu-memory-buffers"
|
|
|
|
# "--enable-zero-copy"
|
|
|
|
# "--ignore-gpu-blocklist"
|
2022-11-04 00:59:34 +03:00
|
|
|
];
|
|
|
|
pkg =
|
2023-09-10 21:40:39 +03:00
|
|
|
(pkgs.armcord.override {
|
2022-11-27 01:04:43 +03:00
|
|
|
nss = pkgs.nss_latest;
|
2022-11-04 00:59:34 +03:00
|
|
|
})
|
|
|
|
.overrideAttrs (old: {
|
2023-09-10 21:40:39 +03:00
|
|
|
# preInstall = ''
|
|
|
|
# gappsWrapperArgs+=("--add-flags" "${lib.concatStringsSep " " flags}")
|
|
|
|
# '';
|
2022-11-04 00:59:34 +03:00
|
|
|
});
|
2022-10-04 02:08:44 +03:00
|
|
|
in [pkg];
|
2023-09-10 21:40:39 +03:00
|
|
|
systemd.user.services.premid = {
|
|
|
|
Install = {
|
|
|
|
WantedBy = ["default.target"];
|
|
|
|
};
|
|
|
|
Unit = {
|
|
|
|
Description = "premid";
|
|
|
|
After = "network.target";
|
|
|
|
};
|
|
|
|
Service = {
|
|
|
|
ExecStart = "${pkgs.premid}/bin/premid";
|
|
|
|
Restart = "on-failure";
|
|
|
|
RestartSec = 5;
|
|
|
|
};
|
|
|
|
};
|
2022-08-11 05:44:58 +03:00
|
|
|
}
|