feat: add 'comms' module
This commit is contained in:
@@ -12,6 +12,7 @@ in
|
||||
{
|
||||
imports = [
|
||||
../../modules/cloud
|
||||
../../modules/comms
|
||||
../../modules/desktop/niri
|
||||
../../modules/3d
|
||||
../../modules/git
|
||||
@@ -37,6 +38,7 @@ in
|
||||
|
||||
browser.primary = "librewolf";
|
||||
cloud.hetzner.enable = true;
|
||||
comms.signal.enable = true;
|
||||
github.enable = true;
|
||||
|
||||
shell.bash = {
|
||||
|
||||
@@ -12,6 +12,7 @@ in
|
||||
../../modules/ai-tools.nix
|
||||
../../modules/anki.nix
|
||||
../../modules/cloud
|
||||
../../modules/comms
|
||||
../../modules/desktop/niri
|
||||
../../modules/git
|
||||
../../modules/k9s.nix
|
||||
@@ -34,6 +35,7 @@ in
|
||||
|
||||
browser.primary = "librewolf";
|
||||
cloud.hetzner.enable = true;
|
||||
comms.signal.enable = true;
|
||||
github.enable = true;
|
||||
|
||||
shell.bash = {
|
||||
|
||||
@@ -22,7 +22,6 @@ with pkgs;
|
||||
pnpm
|
||||
python3
|
||||
ripgrep
|
||||
signal-desktop
|
||||
silver-searcher
|
||||
sops
|
||||
sshfs
|
||||
|
||||
@@ -13,6 +13,7 @@ in
|
||||
inputs.sops-nix.homeManagerModules.sops
|
||||
../../modules/ai-tools.nix
|
||||
../../modules/cloud
|
||||
../../modules/comms
|
||||
../../modules/dconf.nix
|
||||
../../modules/git
|
||||
../../modules/k9s.nix
|
||||
@@ -61,6 +62,8 @@ in
|
||||
browser.primary = "firefox";
|
||||
browser.secondary = "chromium";
|
||||
cloud.azure.enable = true;
|
||||
comms.signal.enable = true;
|
||||
comms.teams.enable = true;
|
||||
github.enable = true;
|
||||
gitlab.enable = true;
|
||||
|
||||
|
||||
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