28 lines
418 B
Nix
28 lines
418 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
|
|
{
|
|
imports = [ ];
|
|
|
|
options.me = {
|
|
claude.enable = lib.mkOption {
|
|
type = lib.types.bool;
|
|
default = false;
|
|
example = true;
|
|
description = "Whether we want to install claude.";
|
|
};
|
|
};
|
|
|
|
config = lib.mkIf config.me.claude.enable {
|
|
environment.systemPackages = with pkgs; [
|
|
claude-code
|
|
];
|
|
|
|
allowedUnfree = [ "claude-code" ];
|
|
};
|
|
}
|