readme for mods

This commit is contained in:
Ivan Dimitrov 2023-11-25 09:01:06 +02:00
parent fe4874dd06
commit ec80ee3f29

View File

@ -14,3 +14,26 @@ To build ivand home:
home-manager switch --flake github:ivandimitrov8080/nix-config#ivand
```
To reuse modules:
in your flake.nix:
```nix
inputs.ivan-mods = {
url = "github:ivandimitrov8080/nix-config";
inputs.nixpkgs.follows = "nixpkgs";
};
outputs = {self, nixpkgs, ivan-mods, ...}:{
...
homeConfigurations = {
my-user = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = with ivan-mods.modules.home; [
programs.nvim
programs.zsh
];
};
};
...
};
```