From 0ec88d704c30657ed06ccf8c2bb5c981994586f8 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Thu, 6 Jul 2023 18:28:21 +0300 Subject: [PATCH] why wont this workkk --- modules/dev/cpp.nix | 15 +++++++++++++++ modules/dev/default.nix | 6 ++++++ 2 files changed, 21 insertions(+) create mode 100644 modules/dev/cpp.nix create mode 100644 modules/dev/default.nix 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 + ]; +}