make this too

This commit is contained in:
Sakooooo 2023-07-09 14:49:25 +03:00
parent da871dabf3
commit 7b2d6ac4f7
Signed by: sako
GPG key ID: 3FD715D87D7725E0
2 changed files with 26 additions and 0 deletions

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

View file