webcord and element to modules

This commit is contained in:
smayzy
2025-07-09 13:39:58 +02:00
parent ddb5c2872c
commit 4186ce739b
7 changed files with 42 additions and 3 deletions
+7
View File
@@ -0,0 +1,7 @@
{ lib, config, pkgs, ... }:
{
imports = [
./element.nix
./webcord.nix
];
}
+17
View File
@@ -0,0 +1,17 @@
{ lib, config, pkgs, ... }:
let
inherit (lib) mkIf mkOption types;
in
{
options.smayzy.element.enable = mkOption {
type = types.bool;
default = false;
description = "element";
};
config = mkIf config.smayzy.element.enable {
environment.systemPackages = with pkgs; [
element-desktop
];
};
}
+17
View File
@@ -0,0 +1,17 @@
{ lib, config, pkgs, ... }:
let
inherit (lib) mkIf mkOption types;
in
{
options.smayzy.webcord.enable = mkOption {
type = types.bool;
default = false;
description = "webcord";
};
config = mkIf config.smayzy.webcord.enable {
environment.systemPackages = with pkgs; [
webcord
];
};
}