Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ jobs:
- uses: cachix/install-nix-action@v31
- uses: DeterminateSystems/magic-nix-cache-action@v13
- uses: actions/checkout@v6
- run: grep -qF '# den.outPath' templates/noflake/default.nix
- run: sed -i 's@# den.outPath@den.outPath@' templates/noflake/default.nix
- run: |
cat <<-EOF > templates/noflake/modules/ci-runtime.nix
Expand Down
9 changes: 5 additions & 4 deletions docs/src/content/docs/tutorials/noflake.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,9 @@ modules/
let
sources = import ./npins;
with-inputs = import sources.with-inputs sources {
# uncomment for local checkout on CI
den.outPath = ./../..;
# Uncomment for local checkout on CI.
# Do NOT commit this line uncommented, or it will break the template for new users.
# den.outPath = ./../..;
};

outputs =
Expand Down Expand Up @@ -163,10 +164,10 @@ The template exposes runnable apps under `den.sh` (one per host/home). The defau

```console
# build the igloo host
nix-run . -A den.sh --run igloo
nix-shell -A den.sh --run igloo

# or pass any nh action: switch, repl, build, --help
nix-run . -A den.sh --run 'igloo build'
nix-shell -A den.sh --run 'igloo build'
```

You can also build with plain `nixos-rebuild` or `nix-build`:
Expand Down
4 changes: 2 additions & 2 deletions templates/noflake/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ This template provides runnable apps for each host/home (see modules/nh.nix)

```shell
# default action is `build`
nix-run . -A den.sh --run igloo
nix-shell -A den.sh --run igloo

# you can specify any other action like `switch`, `repl`, `build`, `--help`
nix-run . -A den.sh --run 'igloo build'
nix-shell -A den.sh --run 'igloo build'
```

or
Expand Down
5 changes: 3 additions & 2 deletions templates/noflake/default.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
let
sources = import ./npins;
with-inputs = import sources.with-inputs sources {
# uncomment for local checkout on CI
den.outPath = ./../..;
# Uncomment for local checkout on CI.
# Do NOT commit this line uncommented, or it will break the template for new users.
# den.outPath = ./../..;
};

outputs =
Expand Down
14 changes: 7 additions & 7 deletions templates/noflake/npins/sources.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
},
"branch": "main",
"submodules": false,
"revision": "fba67817bd16955e10ff158c9758874031af089c",
"url": "https://github.com/denful/den/archive/fba67817bd16955e10ff158c9758874031af089c.tar.gz",
"hash": "sha256-eo2Snm2hoYAq8MA7bfjnn8p36riLcpJDA74Fzx9gcsY="
"revision": "e8e8de1e32646456cfc613f152175a7a548508ec",
"url": "https://github.com/denful/den/archive/e8e8de1e32646456cfc613f152175a7a548508ec.tar.gz",
"hash": "sha256-gp7Q7rMEjsqAyW4Uwz+sms8j+XegD5P/lzRCuMW2fNI="
},
"hjem": {
"type": "Git",
Expand Down Expand Up @@ -65,11 +65,11 @@
"owner": "feel-co",
"repo": "smfh"
},
"branch": "master",
"branch": "main",
"submodules": false,
"revision": "dcc9937332ad77426fa2e8d6c5d8fed037689c69",
"url": "https://github.com/feel-co/smfh/archive/dcc9937332ad77426fa2e8d6c5d8fed037689c69.tar.gz",
"hash": "sha256-s75rkkrfle2g0/DTE0XaU9q+yTvrQHTQSrhMEPLGkIc="
"revision": "d4636e2adbfff58f0e2cc25e795d9844e7208f65",
"url": "https://github.com/feel-co/smfh/archive/d4636e2adbfff58f0e2cc25e795d9844e7208f65.tar.gz",
"hash": "sha256-+Gw0vFNMq8xLNyAiVOAIokFSMAoMpTcBcgq65EgRRW4="
},
"with-inputs": {
"type": "Git",
Expand Down
Loading