feat: add 'comms' module
This commit is contained in:
17
home/modules/comms/default.nix
Normal file
17
home/modules/comms/default.nix
Normal file
@@ -0,0 +1,17 @@
|
||||
{ lib, ... }:
|
||||
|
||||
{
|
||||
options.comms = {
|
||||
signal = {
|
||||
enable = lib.mkEnableOption "signal";
|
||||
};
|
||||
teams = {
|
||||
enable = lib.mkEnableOption "teams";
|
||||
};
|
||||
};
|
||||
|
||||
imports = [
|
||||
./signal.nix
|
||||
./teams.nix
|
||||
];
|
||||
}
|
||||
13
home/modules/comms/signal.nix
Normal file
13
home/modules/comms/signal.nix
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
config = lib.mkIf config.comms.signal.enable {
|
||||
home.packages = with pkgs; [
|
||||
(if config.lib ? nixGL then config.lib.nixGL.wrap signal-desktop else signal-desktop)
|
||||
];
|
||||
};
|
||||
}
|
||||
14
home/modules/comms/teams.nix
Normal file
14
home/modules/comms/teams.nix
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
config = lib.mkIf config.comms.teams.enable {
|
||||
home.packages = with pkgs; [
|
||||
(if config.lib ? nixGL then config.lib.nixGL.wrap teams-for-linux else teams-for-linux)
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user