feat: add 'comms' module
This commit is contained in:
@@ -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 = {
|
||||||
|
|||||||
@@ -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 = {
|
||||||
|
|||||||
@@ -22,7 +22,6 @@ with pkgs;
|
|||||||
pnpm
|
pnpm
|
||||||
python3
|
python3
|
||||||
ripgrep
|
ripgrep
|
||||||
signal-desktop
|
|
||||||
silver-searcher
|
silver-searcher
|
||||||
sops
|
sops
|
||||||
sshfs
|
sshfs
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|
||||||
|
|||||||
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