Add work module to HM config
This commit is contained in:
@@ -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
20
nix/modules/work.nix
Normal 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; [
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user