make this too
This commit is contained in:
parent
da871dabf3
commit
7b2d6ac4f7
2 changed files with 26 additions and 0 deletions
26
modules/dev/projects/README.md
Normal file
26
modules/dev/projects/README.md
Normal file
|
@ -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
|
||||
];
|
||||
};
|
||||
}
|
||||
```
|
0
modules/dev/projects/default.nix
Normal file
0
modules/dev/projects/default.nix
Normal file
Loading…
Reference in a new issue