mirror of
https://forgejo.merr.is/annika/nixos.git
synced 2026-02-04 16:28:01 -05:00
Trying To Add discord
This commit is contained in:
parent
8a3bb1cdde
commit
517dd12828
4 changed files with 38 additions and 1 deletions
6
modules/common/applications/default.nix
Normal file
6
modules/common/applications/default.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{ ... }:
|
||||
{
|
||||
imports = [
|
||||
./discord.nix
|
||||
];
|
||||
}
|
||||
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
|
||||
}
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue