46 lines
1.6 KiB
Markdown
46 lines
1.6 KiB
Markdown
# Dotfiles Modules
|
|
|
|
This repository provides a collection of custom NixOS modules which are in use by me. My actual dotfiles are now private because there is no reason to have private host configurations public. The reusable/public configurations are contained within the modules provided in the repository.
|
|
|
|
## Usage
|
|
|
|
To use the modules, add the following flake input to your flake:
|
|
|
|
```nix
|
|
dotfiles-modules = {
|
|
url = "gitlab:quirinecker/dotfiles-modules";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
```
|
|
|
|
Then import the modules in your home-manager configuration:
|
|
|
|
```nix
|
|
imports = [
|
|
inputs.dotfiles-modules.homemanager.default_apps
|
|
]
|
|
```
|
|
|
|
**Note:** If you are new to NixOS, i might add a template repository for the modules which should be simmilar to my own homemanager config.
|
|
|
|
## Modules
|
|
|
|
There will be a link to the documentation for each module. This repository is still work in progress
|
|
|
|
## Development
|
|
|
|
I am using [nh](https://github.com/nix-community/nh) for my nixos configuration and this is alos how I develop/test the modules. Below is the command.
|
|
This works for me, because I have configured nh to know where my primary flake is located.
|
|
|
|
```bash
|
|
nh home switch -- --override-input dotfiles-modules path:$(pwd)
|
|
```
|
|
|
|
If you forked this repository and want to make some changes something along the lines of the second command could suit your needs.
|
|
|
|
```
|
|
home-manager switch --flake <path-to-your-local-flake> --override-input dotfiles-modules path:$(pwd)
|
|
```
|
|
|
|
**Note:** In the future I might add nixos modules too, in which case I will update the commands becuase the `home-manager` / `nh` command will only update the home config.
|