about summary refs log tree commit diff
path: root/home/profiles/messaging
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2022-01-18 17:38:31 +0900
committersefidel <contact@sefidel.net>2022-01-18 17:38:31 +0900
commit7a372ed81256ce5d6aa608be9bebe173ab4e042e (patch)
tree29c7ee0a316ae0dc21ce3fe22342ec2c36ee0f4c /home/profiles/messaging
parent2bdc141bebd35cc38396271c42b23b6f89d032a0 (diff)
downloadnixrc-7a372ed81256ce5d6aa608be9bebe173ab4e042e.tar.gz
nixrc-7a372ed81256ce5d6aa608be9bebe173ab4e042e.zip
project: rewrite
Diffstat (limited to 'home/profiles/messaging')
-rw-r--r--home/profiles/messaging/default.nix17
1 files changed, 17 insertions, 0 deletions
diff --git a/home/profiles/messaging/default.nix b/home/profiles/messaging/default.nix
new file mode 100644
index 0000000..a25f4e1
--- /dev/null
+++ b/home/profiles/messaging/default.nix
@@ -0,0 +1,17 @@
+{ config, lib, pkgs, ... }:
+let cfg = config.profiles.messaging;
+in
+{
+  imports = [ ../../modules/programs/nixpkgs ];
+  
+  options.profiles.messaging = {
+    enable = lib.mkEnableOption
+      "A profile that enables the system to communicate via internet.";
+  };
+
+  config = lib.mkIf cfg.enable {
+    home.packages = with pkgs; [ discord-canary aerc weechat element slack ];
+    
+    nixpkgs.allowedUnfree = [ "discord-canary" "slack" ];
+  };
+}