From 7a372ed81256ce5d6aa608be9bebe173ab4e042e Mon Sep 17 00:00:00 2001 From: sefidel Date: Tue, 18 Jan 2022 17:38:31 +0900 Subject: project: rewrite --- home/profiles/messaging/default.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 home/profiles/messaging/default.nix (limited to 'home/profiles/messaging') 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" ]; + }; +} -- cgit 1.4.1