mirror of
https://forgejo.merr.is/annika/nixos.git
synced 2026-02-04 16:56:53 -05:00
Trying To Add discord
This commit is contained in:
parent
8a3bb1cdde
commit
517dd12828
4 changed files with 38 additions and 1 deletions
25
modules/common/applications/discord.nix
Normal file
25
modules/common/applications/discord.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{ 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 = with pkgs [
|
||||
discord
|
||||
];
|
||||
xdg.configFile."discord/settings.json".text = ''
|
||||
{
|
||||
"OPEN_ON_STARTUP": true,
|
||||
"MINIMIZE_TO_TRAY": false,
|
||||
"SKIP_HOST_UPDATE": true
|
||||
}
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue