webcord and element to modules
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
{ lib, config, pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
./element.nix
|
||||
./webcord.nix
|
||||
];
|
||||
}
|
||||
@@ -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
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -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
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user