Add work module to HM config

This commit is contained in:
2022-09-01 12:15:43 -07:00
parent d3ec7fec57
commit dfbf168711
2 changed files with 21 additions and 0 deletions

View File

@@ -38,6 +38,7 @@
./modules/git.nix
./modules/direnv.nix
./modules/emacs.nix
./modules/work.nix
];
fonts.fontconfig.enable = true;

20
nix/modules/work.nix Normal file
View File

@@ -0,0 +1,20 @@
{ config, lib, pkgs, ... }:
with lib;
let cfg = config.ttm.work;
in
{
options.ttm.work = {
enable = mkOption {
type = types.bool;
default = true;
description = ''
If enabled, configure the machine for work tasks.
'';
};
};
config = mkIf cfg.enable {
home.packages = with pkgs; [
];
};
}