From 7b2d6ac4f727c2bf2e0b66715698bf91325cd7c1 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Sun, 9 Jul 2023 14:49:25 +0300 Subject: [PATCH] make this too --- modules/dev/projects/README.md | 26 ++++++++++++++++++++++++++ modules/dev/projects/default.nix | 0 2 files changed, 26 insertions(+) create mode 100644 modules/dev/projects/README.md create mode 100644 modules/dev/projects/default.nix diff --git a/modules/dev/projects/README.md b/modules/dev/projects/README.md new file mode 100644 index 00000000..8bc06f15 --- /dev/null +++ b/modules/dev/projects/README.md @@ -0,0 +1,26 @@ +# Projects + +Make a new nix file with your projects name +And add all the dependencies for your project +here! + +```nix +{ options, config, lib, pkgs, ...}: +with lib; +let + cfg = config.modules.dev.projects.myproject; +in +{ + options.modules.dev.projects.myproject = { + enable = mkEnableOption false; + }; + + config = mkIf cfg.enable { + users.users.myuser.packages = with pkgs; [ + usefulpackageone + anotherdependency + somethingsomethingawesomecoollibrary + ]; + }; +} +``` diff --git a/modules/dev/projects/default.nix b/modules/dev/projects/default.nix new file mode 100644 index 00000000..e69de29b