mirror of
https://forgejo.merr.is/annika/nixos.git
synced 2025-12-11 14:35:30 -05:00
25 lines
No EOL
550 B
Nix
25 lines
No EOL
550 B
Nix
{ config, pkgs, lib, ... }:
|
|
{
|
|
options = {
|
|
discord = {
|
|
enable = lib.mkEnableOption {
|
|
description = "Enable Discord";
|
|
default = false;
|
|
};
|
|
};
|
|
};
|
|
config = lib.mkIf (config.gui.enable && config.discord.enable) {
|
|
home-manager.users.${config.user} = {
|
|
home.packages = [
|
|
pkgs.discord
|
|
];
|
|
xdg.configFile."discord/settings.json".text = ''
|
|
{
|
|
"OPEN_ON_STARTUP": true,
|
|
"MINIMIZE_TO_TRAY": false,
|
|
"SKIP_HOST_UPDATE": true
|
|
}
|
|
'';
|
|
};
|
|
};
|
|
} |