Skip to content

Commit 11ce4b8

Browse files
committed
Squashed commit of the following:
commit 7349069 Author: Dan Habot <dan.habot@gmail.com> Date: Tue Mar 31 17:10:42 2026 -0400 formatting commit cb5d47b Author: Dan Habot <dan.habot@gmail.com> Date: Tue Mar 31 01:42:50 2026 -0400 flake parts docs commit 01cf056 Author: Dan Habot <dan.habot@gmail.com> Date: Tue Mar 31 01:20:15 2026 -0400 adopted maximum dendritic model
1 parent f5ef782 commit 11ce4b8

146 files changed

Lines changed: 687 additions & 586 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 54 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,58 @@
11
# NixOS config
22

3+
Dan's NixOS, nix-on-droid, and home-manager configuration using the [dendritic model](https://github.com/vic/import-tree) with [flake-parts](https://flake.parts).
4+
5+
## Using my modules in your flake
6+
7+
Add this flake as an input and import `flakeModules.default`:
8+
9+
```nix
10+
{
11+
inputs = {
12+
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
13+
flake-parts.url = "github:hercules-ci/flake-parts";
14+
dans-dotfiles.url = "github:danhab99/dotfiles";
15+
};
16+
17+
outputs = inputs:
18+
flake-parts.lib.mkFlake { inherit inputs; } {
19+
imports = [
20+
inputs.dans-dotfiles.flakeModules.default
21+
];
22+
23+
# All modules, devshells, and templates are now available.
24+
# Enable modules in your NixOS configuration:
25+
# module.neovim.enable = true;
26+
# module.zsh.enable = true;
27+
# module.git.enable = true;
28+
};
29+
}
30+
```
31+
32+
This gives you:
33+
34+
| Output | Description |
35+
|---|---|
36+
| `flake.modules.nixos.*` | NixOS modules (enable with `module.<name>.enable = true`) |
37+
| `flake.modules.droid.*` | nix-on-droid modules |
38+
| `flake.modules.homeManager.*` | Standalone home-manager modules |
39+
| `perSystem.devShells.*` | Development shells (`nix develop .#node-22`, etc.) |
40+
| `flake.templates.*` | Project templates (`nix flake init -t .#blank`, etc.) |
41+
42+
### Available devshells
43+
44+
```
45+
nix flake show github:danhab99/dotfiles#devShells
46+
```
47+
48+
### Available templates
49+
50+
```
51+
nix flake show github:danhab99/dotfiles#templates
52+
```
53+
54+
---
55+
356
## justfile
457

558
* `just update`: Updates the flake.lock to the latest
@@ -35,7 +88,7 @@ max_jobs=100
3588

3689
## Creating a new workflow template
3790

38-
cd to `./templates` and run `./mkTemplate.sh`. This will copy `blank` into the new workflow.
91+
cd to `./modules/templates` and run `./mkTemplate.sh`. This will copy `blank` into the new workflow.
3992

4093
## Creating a user
4194

devshells/default.nix

Lines changed: 0 additions & 43 deletions
This file was deleted.

devshells/devshell.nix

Lines changed: 0 additions & 77 deletions
This file was deleted.

flake.lock

Lines changed: 54 additions & 55 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)