Skip to content

Commit

Permalink
Add language c++
Browse files Browse the repository at this point in the history
  • Loading branch information
yousiki committed Dec 25, 2024
1 parent f0cc2e9 commit 7308539
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
25 changes: 25 additions & 0 deletions modules/home/languages/cxx/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
lib,
pkgs,
namespace,
config,
...
}: let
cfg = config.${namespace}.languages.cxx;
in {
options.${namespace}.languages.cxx = {
enable = lib.mkOption {
type = lib.types.bool;
default = false;
description = "Whether to enable C++ programming language.";
};
};

config = lib.mkIf cfg.enable {
home = {
packages = with pkgs; [
clang
];
};
};
}
1 change: 1 addition & 0 deletions modules/home/suites/languages/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ in {

config = lib.mkIf cfg.enable {
${namespace}.languages = {
cxx.enable = true;
javascript.enable = true;
nix.enable = true;
python.enable = true;
Expand Down

0 comments on commit 7308539

Please sign in to comment.