feat: add 'comms' module

This commit is contained in:
2026-01-30 16:02:42 +01:00
parent 8a1f51873e
commit 7c46bae3e2
7 changed files with 51 additions and 1 deletions

View File

@@ -12,6 +12,7 @@ in
{ {
imports = [ imports = [
../../modules/cloud ../../modules/cloud
../../modules/comms
../../modules/desktop/niri ../../modules/desktop/niri
../../modules/3d ../../modules/3d
../../modules/git ../../modules/git
@@ -37,6 +38,7 @@ in
browser.primary = "librewolf"; browser.primary = "librewolf";
cloud.hetzner.enable = true; cloud.hetzner.enable = true;
comms.signal.enable = true;
github.enable = true; github.enable = true;
shell.bash = { shell.bash = {

View File

@@ -12,6 +12,7 @@ in
../../modules/ai-tools.nix ../../modules/ai-tools.nix
../../modules/anki.nix ../../modules/anki.nix
../../modules/cloud ../../modules/cloud
../../modules/comms
../../modules/desktop/niri ../../modules/desktop/niri
../../modules/git ../../modules/git
../../modules/k9s.nix ../../modules/k9s.nix
@@ -34,6 +35,7 @@ in
browser.primary = "librewolf"; browser.primary = "librewolf";
cloud.hetzner.enable = true; cloud.hetzner.enable = true;
comms.signal.enable = true;
github.enable = true; github.enable = true;
shell.bash = { shell.bash = {

View File

@@ -22,7 +22,6 @@ with pkgs;
pnpm pnpm
python3 python3
ripgrep ripgrep
signal-desktop
silver-searcher silver-searcher
sops sops
sshfs sshfs

View File

@@ -13,6 +13,7 @@ in
inputs.sops-nix.homeManagerModules.sops inputs.sops-nix.homeManagerModules.sops
../../modules/ai-tools.nix ../../modules/ai-tools.nix
../../modules/cloud ../../modules/cloud
../../modules/comms
../../modules/dconf.nix ../../modules/dconf.nix
../../modules/git ../../modules/git
../../modules/k9s.nix ../../modules/k9s.nix
@@ -61,6 +62,8 @@ in
browser.primary = "firefox"; browser.primary = "firefox";
browser.secondary = "chromium"; browser.secondary = "chromium";
cloud.azure.enable = true; cloud.azure.enable = true;
comms.signal.enable = true;
comms.teams.enable = true;
github.enable = true; github.enable = true;
gitlab.enable = true; gitlab.enable = true;

View File

@@ -0,0 +1,17 @@
{ lib, ... }:
{
options.comms = {
signal = {
enable = lib.mkEnableOption "signal";
};
teams = {
enable = lib.mkEnableOption "teams";
};
};
imports = [
./signal.nix
./teams.nix
];
}

View 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)
];
};
}

View 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)
];
};
}