diff --git a/modules/dev/cpp.nix b/modules/dev/cpp.nix new file mode 100644 index 00000000..3505c38e --- /dev/null +++ b/modules/dev/cpp.nix @@ -0,0 +1,15 @@ +{ config, lib, pkgs, ...}: +with lib; +let cfg = config.modules.dev.cpp; +in { + options.modules.dev.cpp = { + enable = mkBoolOpt false; + }; + + config = mkIf cfg.enable { + users.users.sako.packages = with pkgs; [ + cmake + gcc + ]; + }; +} diff --git a/modules/dev/default.nix b/modules/dev/default.nix new file mode 100644 index 00000000..6b4561e9 --- /dev/null +++ b/modules/dev/default.nix @@ -0,0 +1,6 @@ +{ config, pkgs, lib, ...}: +{ + imports = [ + ./cpp.nix + ]; +}