feat: add telegram module
This commit is contained in:
parent
d6a67b16a2
commit
d698c9b7d7
34
modules/home/applications/telegram.nix
Normal file
34
modules/home/applications/telegram.nix
Normal file
@ -0,0 +1,34 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (lib) getExe mkEnableOption mkIf;
|
||||
cfg = config.ataraxia.programs.telegram;
|
||||
in
|
||||
{
|
||||
options.ataraxia.programs.telegram = {
|
||||
enable = mkEnableOption "Enable telegram program";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
home.packages = with pkgs; [
|
||||
telegram-desktop
|
||||
];
|
||||
|
||||
defaultApplications.messenger = {
|
||||
cmd = getExe pkgs.telegram-desktop;
|
||||
desktop = "telegram-desktop";
|
||||
};
|
||||
|
||||
startupApplications = with config.defaultApplications; [
|
||||
messenger.cmd
|
||||
];
|
||||
|
||||
persist.state.directories = [
|
||||
".local/share/TelegramDesktop"
|
||||
];
|
||||
};
|
||||
}
|
@ -83,6 +83,7 @@ in
|
||||
ataraxia.programs.kitty.enable = mkDefault true;
|
||||
ataraxia.programs.mpv.enable = mkDefault true;
|
||||
ataraxia.programs.rofi.enable = mkDefault true;
|
||||
ataraxia.programs.telegram.enable = mkDefault true;
|
||||
ataraxia.programs.thunderbird.enable = mkDefault true;
|
||||
ataraxia.programs.vscode.enable = mkDefault true;
|
||||
ataraxia.wayland.enable = mkDefault true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user