From 60749582923d6cfa6aca389a56e56065968ce897 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Thu, 27 May 2021 21:49:24 +0200 Subject: [PATCH] home: extract 'comma' into its own module --- home/comma.nix | 15 +++++++++++++++ home/default.nix | 1 + home/packages.nix | 1 - 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 home/comma.nix diff --git a/home/comma.nix b/home/comma.nix new file mode 100644 index 0000000..60de863 --- /dev/null +++ b/home/comma.nix @@ -0,0 +1,15 @@ +{ config, lib, pkgs, ... }: +let + cfg = config.my.home.comma; +in +{ + options.my.home.comma = with lib; { + enable = my.mkDisableOption "comma configuration"; + }; + + config = lib.mkIf cfg.enable { + home.packages = with pkgs; [ + ambroisie.comma + ]; + }; +} diff --git a/home/default.nix b/home/default.nix index 8b638aa..efc4a81 100644 --- a/home/default.nix +++ b/home/default.nix @@ -3,6 +3,7 @@ imports = [ ./bat.nix ./bluetooth.nix + ./comma.nix ./direnv.nix ./documentation.nix ./feh.nix diff --git a/home/packages.nix b/home/packages.nix index 90111a2..0d57840 100644 --- a/home/packages.nix +++ b/home/packages.nix @@ -18,7 +18,6 @@ in }; config.home.packages = with pkgs; lib.mkIf cfg.enable ([ - ambroisie.comma file gitAndTools.git-absorb gitAndTools.git-revise