Trying To Add discord

This commit is contained in:
Annika Merris 2024-05-18 17:59:38 -04:00
parent 8a3bb1cdde
commit 517dd12828
4 changed files with 38 additions and 1 deletions

View file

@ -0,0 +1,6 @@
{ ... }:
{
imports = [
./discord.nix
];
}

View 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
}
'';
};
};
}

View file

@ -1,6 +1,7 @@
{ config, lib, pkgs, ...}:
{
imports = [
./applications
./utilities
];
options = {
@ -12,6 +13,10 @@
type = lib.types.str;
description = "Puny Hooman readable name of the user";
};
gui = lib.mkEnableOption {
description = "Enable graphics.";
default = false;
};
};
config =
let