nixos-config/config/programs/ims.nix

27 lines
701 B
Nix
Raw Normal View History

2022-07-06 10:50:25 +00:00
{
config,
pkgs,
2022-10-26 08:18:54 +00:00
lib,
2023-01-13 16:15:00 +00:00
nixpkgs,
2022-07-06 10:50:25 +00:00
...
2022-11-20 14:22:09 +00:00
}: let
2023-01-13 16:15:00 +00:00
x86_64-linux-pkgs = import nixpkgs {
system = "x86_64-linux";
config.allowUnfree = true;
};
2023-01-17 10:02:41 +00:00
firefox-wrapped = x86_64-linux-pkgs.firefox; #config.programs.firefox.package;
firefox = firefox-wrapped.unwrapped;
nss = pkgs.lib.lists.findFirst (x: x.pname or x.name == "nss") null firefox.buildInputs;
2022-10-18 11:25:05 +00:00
in {
2022-01-18 16:23:30 +00:00
home.packages = with pkgs; [
2023-01-13 16:15:00 +00:00
(x86_64-linux-pkgs.discord.override {inherit nss;})
2022-10-18 11:26:47 +00:00
tdesktop
2022-09-12 15:13:53 +00:00
element-desktop
2022-11-18 16:58:17 +00:00
nheko
2023-03-21 19:52:10 +00:00
cinny-desktop
2022-01-18 16:23:30 +00:00
];
2022-10-26 08:18:54 +00:00
home.activation.betterDiscord = lib.hm.dag.entryAfter ["writeBoundary"] ''
$DRY_RUN_CMD ${pkgs.betterdiscordctl}/bin/betterdiscordctl install $VERBOSE_ARG || true
'';
2022-01-18 16:23:30 +00:00
}