Add discord
This commit is contained in:
parent
893fad3b9c
commit
44ce54628e
|
|
@ -4,6 +4,7 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./direnv.nix
|
./direnv.nix
|
||||||
|
./discord.nix
|
||||||
./firefox.nix
|
./firefox.nix
|
||||||
./gpg.nix
|
./gpg.nix
|
||||||
./fzf.nix
|
./fzf.nix
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,18 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
with lib;
|
||||||
|
let
|
||||||
|
cfg = config.modules.discord;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
programs.discord = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.discord;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -3,6 +3,7 @@
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
./discord.nix
|
||||||
./displayManager.nix
|
./displayManager.nix
|
||||||
./gpg.nix
|
./gpg.nix
|
||||||
./hyprland.nix
|
./hyprland.nix
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,13 @@
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
with lib;
|
||||||
|
{
|
||||||
|
options.modules.discord = {
|
||||||
|
enable = mkEnableOption {
|
||||||
|
default = false;
|
||||||
|
description = "Enable Discord";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -23,4 +23,6 @@
|
||||||
modules.shell.defaultShell = "zsh";
|
modules.shell.defaultShell = "zsh";
|
||||||
|
|
||||||
modules.pipewire.enable = true;
|
modules.pipewire.enable = true;
|
||||||
|
|
||||||
|
modules.discord.enable = true;
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue