# Non-static Nix on your flake inputs! Define custom output schemas.
-> `flake-file` and [vic](https://bsky.app/profile/oeiuwq.bsky.social)'s [dendritic libs](https://dendritic.oeiuwq.com) made for you with Love++ and AI--. If you like my work, consider [sponsoring](https://dendritic.oeiuwq.com/sponsor)
+> `flake-file` and [denful](https://bsky.app/profile/oeiuwq.bsky.social)'s [dendritic libs](https://dendritic.oeiuwq.com) made for you with Love++ and AI--. If you like my work, consider [sponsoring](https://dendritic.oeiuwq.com/sponsor)
**flake-file** lets you generate a clean, maintainable `flake.nix` from Nix module options. Use the _real_ Nix language to define your inputs.
@@ -30,7 +30,7 @@ This means
### Features
- Flake definition aggregated from Nix modules.
-- [Input](https://github.com/vic/flake-file/blob/main/modules/options/default.nix) and Output schemas based on Nix types.
+- [Input](https://github.com/denful/flake-file/blob/main/modules/options/default.nix) and Output schemas based on Nix types.
- Syntax for nixConfig and follows is the same as in flakes.
- `flake check` ensures files are up to date.
- App for `flake.nix` generator: `nix run .#write-flake`
@@ -38,7 +38,7 @@ This means
- Automatic flake.lock [flattening](#automatic-flakelock-flattening).
- Incrementally add [flake-parts-builder](#parts_templates) templates.
- Pick flakeModules for different feature sets.
-- [Dendritic](https://vic.github.io/dendrix/Dendritic.html) flake template.
+- [Dendritic](https://denful.github.io/dendrix/Dendritic.html) flake template.
- Works on stable Nix, [npins](templates/npins), [unflake](templates/unflake), [nixlock](templates/nixlock) environments.
diff --git a/docs/src/components/FooterLinks.astro b/docs/src/components/FooterLinks.astro
index 593658e..48a8d2b 100644
--- a/docs/src/components/FooterLinks.astro
+++ b/docs/src/components/FooterLinks.astro
@@ -3,7 +3,7 @@ import { Icon } from '@astrojs/starlight/components';
---
-
+
Contribute
diff --git a/docs/src/components/SocialIcons.astro b/docs/src/components/SocialIcons.astro
index 0d52260..e898949 100644
--- a/docs/src/components/SocialIcons.astro
+++ b/docs/src/components/SocialIcons.astro
@@ -4,13 +4,13 @@ import Default from '@astrojs/starlight/components/SocialIcons.astro';
---
-
+
-
+
-
+
-
+
diff --git a/docs/src/content/docs/explanation/what-is-flake-file.mdx b/docs/src/content/docs/explanation/what-is-flake-file.mdx
index 1c4f7da..e9ea111 100644
--- a/docs/src/content/docs/explanation/what-is-flake-file.mdx
+++ b/docs/src/content/docs/explanation/what-is-flake-file.mdx
@@ -75,4 +75,4 @@ Many Dendritic Nix layouts use flake-file because it helps with localization of
Inputs are declared near where they are used, frequently in the same module.
Decomissining the module also removes the inputs.
-Even when flake-file was born for flakes, its author [vic/vix](https://github.com/vic/vix) uses flake-file without flakes. The [`dev/`](https://github.com/vic/flake-file/blob/main/dev) directory in this repo eats its own cooking. [More examples on GitHub](https://github.com/search?q=%22vic%2Fflake-file%22+language%3ANix&type=code).
+Even when flake-file was born for flakes, its author [denful/vix](https://github.com/denful/vix) uses flake-file without flakes. The [`dev/`](https://github.com/denful/flake-file/blob/main/dev) directory in this repo eats its own cooking. [More examples on GitHub](https://github.com/search?q=%22vic%2Fflake-file%22+language%3ANix&type=code).
diff --git a/docs/src/content/docs/guides/flake-modules.mdx b/docs/src/content/docs/guides/flake-modules.mdx
index 8f39ecd..9c6eb89 100644
--- a/docs/src/content/docs/guides/flake-modules.mdx
+++ b/docs/src/content/docs/guides/flake-modules.mdx
@@ -15,17 +15,17 @@ The base module. Provides all `flake-file.*` options, the `write-flake` app, and
}
```
-Source: [`modules/default.nix`](https://github.com/vic/flake-file/tree/main/modules/default.nix)
+Source: [`modules/default.nix`](https://github.com/denful/flake-file/tree/main/modules/default.nix)
## `flakeModules.import-tree`
-Adds [import-tree](https://github.com/vic/import-tree) — auto-import all `.nix` files from a directory.
+Adds [import-tree](https://github.com/denful/import-tree) — auto-import all `.nix` files from a directory.
-Source: [`modules/import-tree.nix`](https://github.com/vic/flake-file/tree/main/modules/import-tree.nix)
+Source: [`modules/import-tree.nix`](https://github.com/denful/flake-file/tree/main/modules/import-tree.nix)
## `flakeModules.dendritic`
-A batteries-included setup for [Dendritic](https://vic.github.io/dendrix/Dendritic.html) projects. Includes:
+A batteries-included setup for [Dendritic](https://denful.github.io/dendrix/Dendritic.html) projects. Includes:
- `flakeModules.default`
- `flakeModules.import-tree`
@@ -44,7 +44,7 @@ A batteries-included setup for [Dendritic](https://vic.github.io/dendrix/Dendrit
}
```
-Source: [`modules/dendritic/default.nix`](https://github.com/vic/flake-file/tree/main/modules/dendritic/default.nix)
+Source: [`modules/dendritic/default.nix`](https://github.com/denful/flake-file/tree/main/modules/dendritic/default.nix)
## `lib.flakeModules.flake-parts-builder`
@@ -60,34 +60,34 @@ Integrates [flake-parts-builder](https://github.com/tsandrini/flake-parts-builde
See [flake-parts-builder guide](/guides/flake-parts-builder) for details.
-Source: [`modules/flake-parts-builder/default.nix`](https://github.com/vic/flake-file/tree/main/modules/flake-parts-builder/default.nix)
+Source: [`modules/flake-parts-builder/default.nix`](https://github.com/denful/flake-file/tree/main/modules/flake-parts-builder/default.nix)
## `flakeModules.allfollow`
Enables automatic `flake.lock` flattening using [spikespaz/allfollow](https://github.com/spikespaz/allfollow).
-Source: [`modules/prune-lock/allfollow.nix`](https://github.com/vic/flake-file/tree/main/modules/prune-lock/allfollow.nix)
+Source: [`modules/prune-lock/allfollow.nix`](https://github.com/denful/flake-file/tree/main/modules/prune-lock/allfollow.nix)
## `flakeModules.nix-auto-follow`
Enables automatic `flake.lock` flattening using [fzakaria/nix-auto-follow](https://github.com/fzakaria/nix-auto-follow).
-Source: [`modules/prune-lock/nix-auto-follow.nix`](https://github.com/vic/flake-file/tree/main/modules/prune-lock/nix-auto-follow.nix)
+Source: [`modules/prune-lock/nix-auto-follow.nix`](https://github.com/denful/flake-file/tree/main/modules/prune-lock/nix-auto-follow.nix)
## `flakeModules.npins`
Defines `flake-file` options for [npins](https://github.com/andir/npins)-based environments. Exposes `write-npins`. Supports `github`, `gitlab`, `channel`, `tarball`, and `git` schemes. Respects `follows` for deduplication. Prunes stale pins automatically.
-Source: [`modules/npins`](https://github.com/vic/flake-file/tree/main/modules/npins)
+Source: [`modules/npins`](https://github.com/denful/flake-file/tree/main/modules/npins)
## `flakeModules.unflake`
Defines `flake-file` options for [unflake](https://codeberg.org/goldstein/unflake)-based environments. Exposes `write-unflake`.
-Source: [`modules/unflake`](https://github.com/vic/flake-file/tree/main/modules/unflake)
+Source: [`modules/unflake`](https://github.com/denful/flake-file/tree/main/modules/unflake)
## `flakeModules.nixlock`
Defines `flake-file` options for [nixlock](https://codeberg.org/FrdrCkII/nixlock)-based environments. Exposes `write-nixlock`.
-Source: [`modules/nixlock`](https://github.com/vic/flake-file/tree/main/modules/nixlock)
+Source: [`modules/nixlock`](https://github.com/denful/flake-file/tree/main/modules/nixlock)
diff --git a/docs/src/content/docs/guides/flake-parts-builder.mdx b/docs/src/content/docs/guides/flake-parts-builder.mdx
index ce2bd73..ad70bda 100644
--- a/docs/src/content/docs/guides/flake-parts-builder.mdx
+++ b/docs/src/content/docs/guides/flake-parts-builder.mdx
@@ -28,10 +28,10 @@ This:
## Adding parts
```shell
-nix run github:vic/flake-parts-builder/write-meta -- add --write-meta --parts systems,treefmt $PWD
+nix run github:denful/flake-parts-builder/write-meta -- add --write-meta --parts systems,treefmt $PWD
```
-> **Important:** Use `github:vic/flake-parts-builder/write-meta` until [flake-parts-builder#60](https://github.com/tsandrini/flake-parts-builder/pull/60) is merged. This branch writes each part's `_meta/` file so that flake-file can manage inputs declared by the part.
+> **Important:** Use `github:denful/flake-parts-builder/write-meta` until [flake-parts-builder#60](https://github.com/tsandrini/flake-parts-builder/pull/60) is merged. This branch writes each part's `_meta/` file so that flake-file can manage inputs declared by the part.
> **Warning:** Only use the `add` subcommand. The `init` subcommand overwrites `flake.nix`, which is managed by flake-file.
diff --git a/docs/src/content/docs/guides/lock-flattening.mdx b/docs/src/content/docs/guides/lock-flattening.mdx
index 6040e72..aefe36e 100644
--- a/docs/src/content/docs/guides/lock-flattening.mdx
+++ b/docs/src/content/docs/guides/lock-flattening.mdx
@@ -21,7 +21,7 @@ flake-file ships support for two established flattening tools:
}
```
-Source: [`modules/prune-lock/allfollow.nix`](https://github.com/vic/flake-file/tree/main/modules/prune-lock/allfollow.nix)
+Source: [`modules/prune-lock/allfollow.nix`](https://github.com/denful/flake-file/tree/main/modules/prune-lock/allfollow.nix)
### nix-auto-follow
@@ -33,7 +33,7 @@ Source: [`modules/prune-lock/allfollow.nix`](https://github.com/vic/flake-file/t
}
```
-Source: [`modules/prune-lock/nix-auto-follow.nix`](https://github.com/vic/flake-file/tree/main/modules/prune-lock/nix-auto-follow.nix)
+Source: [`modules/prune-lock/nix-auto-follow.nix`](https://github.com/denful/flake-file/tree/main/modules/prune-lock/nix-auto-follow.nix)
## How it integrates
diff --git a/docs/src/content/docs/guides/templates.mdx b/docs/src/content/docs/guides/templates.mdx
index 84f4238..8223cf1 100644
--- a/docs/src/content/docs/guides/templates.mdx
+++ b/docs/src/content/docs/guides/templates.mdx
@@ -6,7 +6,7 @@ description: Ready-made project templates for flake-file.
flake-file ships several Nix flake templates. Initialise any of them with:
```shell
-nix flake init -t github:vic/flake-file#
+nix flake init -t github:denful/flake-file#
```
## `default`
@@ -19,7 +19,7 @@ A minimal, explicit setup without extra framework dependencies.
imports = [ inputs.flake-file.flakeModules.default ];
flake-file.inputs = {
- flake-file.url = "github:vic/flake-file";
+ flake-file.url = "github:denful/flake-file";
flake-parts.url = "github:hercules-ci/flake-parts";
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
};
@@ -32,10 +32,10 @@ A minimal, explicit setup without extra framework dependencies.
## `dendritic`
-Includes `flakeModules.dendritic` — the recommended starting point for new [Dendritic](https://vic.github.io/dendrix/Dendritic.html) projects. Comes with import-tree, flake-parts, and sensible defaults.
+Includes `flakeModules.dendritic` — the recommended starting point for new [Dendritic](https://denful.github.io/dendrix/Dendritic.html) projects. Comes with import-tree, flake-parts, and sensible defaults.
```shell
-nix flake init -t github:vic/flake-file#dendritic
+nix flake init -t github:denful/flake-file#dendritic
nix run ".#write-flake"
nix flake check
```
@@ -49,7 +49,7 @@ Uses `lib.flakeModules.flake-parts-builder` for projects that manage their flake
For **non-flake** (stable Nix) environments. Uses [npins](https://github.com/andir/npins) to pin inputs. Supports channels, GitHub, GitLab, tarballs, and git repos. Recommended for new non-flake projects.
```shell
-nix flake init -t github:vic/flake-file#npins
+nix flake init -t github:denful/flake-file#npins
```
## `unflake`
@@ -57,7 +57,7 @@ nix flake init -t github:vic/flake-file#npins
For **non-flake** (stable Nix) environments. Uses [goldstein/unflake](https://codeberg.org/goldstein/unflake) to pin inputs.
```shell
-nix flake init -t github:vic/flake-file#unflake
+nix flake init -t github:denful/flake-file#unflake
```
## `nixlock`
@@ -65,7 +65,7 @@ nix flake init -t github:vic/flake-file#unflake
For **non-flake** (stable Nix) environments. Uses [FrdrCkII/nixlock](https://codeberg.org/FrdrCkII/nixlock) to pin inputs.
```shell
-nix flake init -t github:vic/flake-file#unflake
+nix flake init -t github:denful/flake-file#unflake
```
## Tips
diff --git a/docs/src/content/docs/index.mdx b/docs/src/content/docs/index.mdx
index ba75448..6cc7f7b 100644
--- a/docs/src/content/docs/index.mdx
+++ b/docs/src/content/docs/index.mdx
@@ -19,7 +19,7 @@ hero:
link: /overview
variant: minimal
- text: Source Code
- link: https://github.com/vic/flake-file
+ link: https://github.com/denful/flake-file
icon: github
variant: secondary
---
@@ -47,7 +47,7 @@ Ever wanted to interpolate a string just to discover inputs are **NOT REAL** Nix
```shell
mv flake.nix flake-file.nix
-nix-shell https://github.com/vic/flake-file/archive/main.tar.gz -A flake-file.sh --run bootstrap
+nix-shell https://github.com/denful/flake-file/archive/main.tar.gz -A flake-file.sh --run bootstrap
```
### Features
diff --git a/docs/src/content/docs/reference/bootstrap.mdx b/docs/src/content/docs/reference/bootstrap.mdx
index df97d1a..af1c6aa 100644
--- a/docs/src/content/docs/reference/bootstrap.mdx
+++ b/docs/src/content/docs/reference/bootstrap.mdx
@@ -8,7 +8,7 @@ import { Aside } from '@astrojs/starlight/components';
The bootstrap command lets you generate `flake.nix`, `unflake.nix`, `nixlock.lock.nix`, or `npins/` from scratch — without being inside an existing flake.
```shell
-nix-shell https://github.com/vic/flake-file/archive/refs/heads/main.zip \
+nix-shell https://github.com/denful/flake-file/archive/refs/heads/main.zip \
-A flake-file.sh --run [--arg ]...
```
@@ -31,7 +31,7 @@ All arguments are passed as `--arg ` to `nix-shell`.
### `modules`
-The Nix file or directory containing your flake-file module definitions. All `.nix` files in a directory are auto-imported via [import-tree](https://github.com/vic/import-tree).
+The Nix file or directory containing your flake-file module definitions. All `.nix` files in a directory are auto-imported via [import-tree](https://github.com/denful/import-tree).
- **Type:** path
- **Default:** `[]` (empty)
@@ -55,8 +55,8 @@ Available bootstrap inputs:
| Name | Default URL |
| --- | --- |
-| `import-tree` | `github:vic/import-tree` |
-| `flake-file` | `github:vic/flake-file` |
+| `import-tree` | `github:denful/import-tree` |
+| `flake-file` | `github:denful/flake-file` |
| `flake-parts` | `github:hercules-ci/flake-parts` |
| `nixpkgs` | `https://channels.nixos.org/nixpkgs-unstable/nixexprs.tar.xz` |
@@ -98,7 +98,7 @@ Override the `flake-file.outputs` expression. When not provided, the default fro
--argstr outputs 'inputs: inputs.flake-parts.lib.mkFlake { inherit inputs; } (inputs.import-tree ./modules)'
```
-Instead of the above, some special values are recognized: see [outputs.nix](https://github.com/vic/flake-file/blob/main/modules/options/outputs.nix)
+Instead of the above, some special values are recognized: see [outputs.nix](https://github.com/denful/flake-file/blob/main/modules/options/outputs.nix)
```shell
--argstr outputs flake-parts
diff --git a/docs/src/content/docs/reference/options.mdx b/docs/src/content/docs/reference/options.mdx
index a86f65d..66423ef 100644
--- a/docs/src/content/docs/reference/options.mdx
+++ b/docs/src/content/docs/reference/options.mdx
@@ -5,7 +5,7 @@ description: Complete reference for all flake-file.* module options.
All options are set under the `flake-file` namespace in any flake-parts module.
-See the source: [`modules/options/default.nix`](https://github.com/vic/flake-file/blob/main/modules/options/default.nix)
+See the source: [`modules/options/default.nix`](https://github.com/denful/flake-file/blob/main/modules/options/default.nix)
## Top-level Options
diff --git a/docs/src/content/docs/tutorials/bootstrap.mdx b/docs/src/content/docs/tutorials/bootstrap.mdx
index 7e76d97..d1f4bef 100644
--- a/docs/src/content/docs/tutorials/bootstrap.mdx
+++ b/docs/src/content/docs/tutorials/bootstrap.mdx
@@ -19,10 +19,10 @@ You can create a `flake.nix` from scratch — without running inside an existing
```shell "write-flake" "./flake-file.nix"
# Write a minimal flake-file.nix file (or copy a flake.nix of yours)
-echo '{ inputs.flake-file.url = "github:vic/flake-file"; }' > flake-file.nix
+echo '{ inputs.flake-file.url = "github:denful/flake-file"; }' > flake-file.nix
# Generate flake.nix or unflake.nix or npins or nixlock from flake-file.nix
-nix-shell https://github.com/vic/flake-file/archive/refs/heads/main.zip \
+nix-shell https://github.com/denful/flake-file/archive/refs/heads/main.zip \
-A flake-file.sh --run write-flake --arg modules ./flake-file.nix
```
@@ -33,10 +33,10 @@ Replace `write-flake` with `write-inputs`, `write-unflake`, `write-nixlock`, or
## Using a modules directory
-`bootstrap.nix` can also be a directory. All `.nix` files in it will be auto-imported using [import-tree](https://github.com/vic/import-tree):
+`bootstrap.nix` can also be a directory. All `.nix` files in it will be auto-imported using [import-tree](https://github.com/denful/import-tree):
```shell "./modules"
-nix-shell https://github.com/vic/flake-file/archive/refs/heads/main.zip \
+nix-shell https://github.com/denful/flake-file/archive/refs/heads/main.zip \
-A flake-file.sh --run write-flake --arg modules ./modules
```
diff --git a/docs/src/content/docs/tutorials/migrate-flake-parts.mdx b/docs/src/content/docs/tutorials/migrate-flake-parts.mdx
index f61d298..21ce944 100644
--- a/docs/src/content/docs/tutorials/migrate-flake-parts.mdx
+++ b/docs/src/content/docs/tutorials/migrate-flake-parts.mdx
@@ -64,7 +64,7 @@ Second is also moving the `(A)` inputs into `./modules`
And now, lets replace `flake.nix` using bootstrapping magic step:
```shell "./modules" "flake-parts"
-nix-shell https://github.com/vic/flake-file/archive/main.tar.gz \
+nix-shell https://github.com/denful/flake-file/archive/main.tar.gz \
-A flake-file.sh --run write-flake \
--arg modules ./modules --argstr outputs flake-parts
```
@@ -93,7 +93,7 @@ Edit `./modules/inputs.nix` module to add in-flake flake-file.
flake-file.inputs = {
# make sure you add flake-file dependency.
-+ flake-file.url = lib.mkDefault "github:vic/flake-file";
++ flake-file.url = lib.mkDefault "github:denful/flake-file";
};
imports = [
diff --git a/docs/src/content/docs/tutorials/migrate-no-flakes.mdx b/docs/src/content/docs/tutorials/migrate-no-flakes.mdx
index 14e8e5c..da1a635 100644
--- a/docs/src/content/docs/tutorials/migrate-no-flakes.mdx
+++ b/docs/src/content/docs/tutorials/migrate-no-flakes.mdx
@@ -54,7 +54,7 @@ to rename your existing directory first.
And now, lets generate `./npins` from `./flake-file.nix`.
```shell "./flake-file.nix" "write-npins"
-nix-shell https://github.com/vic/flake-file/archive/main.tar.gz \
+nix-shell https://github.com/denful/flake-file/archive/main.tar.gz \
-A flake-file.sh --run write-npins --arg modules ./flake-file.nix
```
@@ -118,7 +118,7 @@ outputs
To update npins from inputs at ./modules do:
```shell "./modules" "write-npins"
-nix-shell https://github.com/vic/flake-file/archive/main.tar.gz \
+nix-shell https://github.com/denful/flake-file/archive/main.tar.gz \
-A flake-file.sh --run write-npins --arg modules ./modules
```
@@ -126,4 +126,4 @@ nix-shell https://github.com/vic/flake-file/archive/main.tar.gz \
If you wish to have flake-like resolved inputs
to use flakes from non-flake world, take a
-look at [with-inputs.nix](https://github.com/vic/flake-file/tree/main/templates/npins/with-inputs.nix) used by [templates/npins](https://github.com/vic/flake-file/tree/main/templates/npins/default.nix)
+look at [with-inputs.nix](https://github.com/denful/flake-file/tree/main/templates/npins/with-inputs.nix) used by [templates/npins](https://github.com/denful/flake-file/tree/main/templates/npins/default.nix)
diff --git a/docs/src/content/docs/tutorials/migrate-traditional-flake.mdx b/docs/src/content/docs/tutorials/migrate-traditional-flake.mdx
index e5c51cd..1cfb66a 100644
--- a/docs/src/content/docs/tutorials/migrate-traditional-flake.mdx
+++ b/docs/src/content/docs/tutorials/migrate-traditional-flake.mdx
@@ -6,14 +6,14 @@ description: Migrate a traditional flake to flake-file (no flake-parts)
import { Aside } from '@astrojs/starlight/components';
## The bootstrap magic step.
```shell
mv flake.nix flake-file.nix
-nix-shell https://github.com/vic/flake-file/archive/main.tar.gz -A flake-file.sh --run bootstrap
+nix-shell https://github.com/denful/flake-file/archive/main.tar.gz -A flake-file.sh --run bootstrap
```
## The new `flake.nix` (static Nix)
@@ -64,7 +64,7 @@ When your input changes, run it again to propagate your input changes into
the **static** `flake.nix`.
```shell
-nix-shell https://github.com/vic/flake-file/archive/main.zip -A flake-file.sh --run bootstrap
+nix-shell https://github.com/denful/flake-file/archive/main.zip -A flake-file.sh --run bootstrap
```