nixos/modules/dev/projects/README.md
2023-07-09 14:49:25 +03:00

506 B

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