nixos/modules/dev/projects/README.md

27 lines
506 B
Markdown
Raw Normal View History

2023-07-09 15:49:25 +04:00
# 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
];
};
}
```