nixos/modules/dev/projects
2023-07-09 15:19:20 +03:00
..
SakoEngine add projects module 2023-07-09 15:19:20 +03:00
default.nix add projects module 2023-07-09 15:19:20 +03:00
README.md make this too 2023-07-09 14:49:25 +03:00

Projects

Make a new nix file with your projects name And add all the dependencies for your project here!

{ 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
    ];
  };
}