From f1cfce48d3357841bd3bfa926696a9495b106bd5 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Mon, 2 Sep 2024 11:19:46 +0400 Subject: [PATCH] new york --- hosts/sakopc/configuration.nix | 1 + hosts/sakotop/configuration.nix | 2 +- modules/desktop/chat/default.nix | 1 + modules/desktop/chat/element/default.nix | 22 ++++++++++++++++++++++ 4 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 modules/desktop/chat/element/default.nix diff --git a/hosts/sakopc/configuration.nix b/hosts/sakopc/configuration.nix index b7aeb666..2ad0b1c1 100644 --- a/hosts/sakopc/configuration.nix +++ b/hosts/sakopc/configuration.nix @@ -47,6 +47,7 @@ telegram.enable = true; weechat.enable = true; signal.enable = true; + element.enable = true; }; game = { lutris.enable = true; diff --git a/hosts/sakotop/configuration.nix b/hosts/sakotop/configuration.nix index faa844d8..b5feb39c 100644 --- a/hosts/sakotop/configuration.nix +++ b/hosts/sakotop/configuration.nix @@ -44,7 +44,7 @@ teams.enable = true; telegram.enable = true; weechat.enable = true; - cinny.enable = true; + element.enable = true; }; apps = { nemo.enable = true; diff --git a/modules/desktop/chat/default.nix b/modules/desktop/chat/default.nix index c47d3213..923077b5 100644 --- a/modules/desktop/chat/default.nix +++ b/modules/desktop/chat/default.nix @@ -7,5 +7,6 @@ ./weechat ./signal ./cinny + ./element ]; } diff --git a/modules/desktop/chat/element/default.nix b/modules/desktop/chat/element/default.nix new file mode 100644 index 00000000..1121d4f6 --- /dev/null +++ b/modules/desktop/chat/element/default.nix @@ -0,0 +1,22 @@ +{ + outputs, + options, + config, + lib, + pkgs, + ... +}: +let + cfg = config.modules.desktop.chat.element; +in { + options.modules.desktop.chat.element = { + enable = lib.mkEnableOption false; + }; + + config = lib.mkIf cfg.enable { + users.users.sako.packages = with pkgs.stable; [ + element-desktop + ]; + + }; +}