home: extract 'comma' into its own module
This commit is contained in:
parent
da21e7a6f2
commit
6074958292
15
home/comma.nix
Normal file
15
home/comma.nix
Normal file
|
@ -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
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
|
@ -3,6 +3,7 @@
|
||||||
imports = [
|
imports = [
|
||||||
./bat.nix
|
./bat.nix
|
||||||
./bluetooth.nix
|
./bluetooth.nix
|
||||||
|
./comma.nix
|
||||||
./direnv.nix
|
./direnv.nix
|
||||||
./documentation.nix
|
./documentation.nix
|
||||||
./feh.nix
|
./feh.nix
|
||||||
|
|
|
@ -18,7 +18,6 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
config.home.packages = with pkgs; lib.mkIf cfg.enable ([
|
config.home.packages = with pkgs; lib.mkIf cfg.enable ([
|
||||||
ambroisie.comma
|
|
||||||
file
|
file
|
||||||
gitAndTools.git-absorb
|
gitAndTools.git-absorb
|
||||||
gitAndTools.git-revise
|
gitAndTools.git-revise
|
||||||
|
|
Loading…
Reference in a new issue