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

26 lines
506 B
Markdown

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