Merge pull request 'consistently use tarball urls in documentation' (#4589) from no-git-fix into main
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4589 Reviewed-by: pinpox <clan@pablo.tools>
This commit is contained in:
@@ -60,7 +60,7 @@ If you used `clan-core` as an input attribute for your flake:
|
|||||||
|
|
||||||
```nix
|
```nix
|
||||||
# ↓ module.input = "clan-core"
|
# ↓ module.input = "clan-core"
|
||||||
inputs.clan-core.url = "git+https://git.clan.lol/clan/clan-core"
|
inputs.clan-core.url = "https://git.clan.lol/clan/clan-core/archive/main.tar.gz";
|
||||||
```
|
```
|
||||||
|
|
||||||
## Simplified Example
|
## Simplified Example
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ inputs = {
|
|||||||
flake-parts.inputs.nixpkgs-lib.follows = "nixpkgs";
|
flake-parts.inputs.nixpkgs-lib.follows = "nixpkgs";
|
||||||
|
|
||||||
clan-core = {
|
clan-core = {
|
||||||
url = "git+https://git.clan.lol/clan/clan-core";
|
url = "https://git.clan.lol/clan/clan-core/archive/main.tar.gz";
|
||||||
inputs.nixpkgs.follows = "nixpkgs"; # Don't do this if your machines are on nixpkgs stable.
|
inputs.nixpkgs.follows = "nixpkgs"; # Don't do this if your machines are on nixpkgs stable.
|
||||||
# New
|
# New
|
||||||
inputs.flake-parts.follows = "flake-parts";
|
inputs.flake-parts.follows = "flake-parts";
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ sudo umount /dev/sdb1
|
|||||||
- Set your preferred language and keymap
|
- Set your preferred language and keymap
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
clan flash write --flake git+https://git.clan.lol/clan/clan-core \
|
clan flash write --flake https://git.clan.lol/clan/clan-core/archive/main.tar.gz \
|
||||||
--ssh-pubkey $HOME/.ssh/id_ed25519.pub \
|
--ssh-pubkey $HOME/.ssh/id_ed25519.pub \
|
||||||
--keymap us \
|
--keymap us \
|
||||||
--language en_US.UTF-8 \
|
--language en_US.UTF-8 \
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ By the end of this guide, you'll have a fresh NixOS configuration ready to push
|
|||||||
Create a new clan
|
Create a new clan
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
nix run git+https://git.clan.lol/clan/clan-core#clan-cli --refresh -- flakes create
|
nix run https://git.clan.lol/clan/clan-core/archive/main.tar.gz#clan-cli --refresh -- flakes create
|
||||||
```
|
```
|
||||||
|
|
||||||
This should prompt for a *name*:
|
This should prompt for a *name*:
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ manage your configurations with clan.
|
|||||||
|
|
||||||
```nix
|
```nix
|
||||||
inputs.clan-core = {
|
inputs.clan-core = {
|
||||||
url = "git+https://git.clan.lol/clan/clan-core";
|
url = "https://git.clan.lol/clan/clan-core/archive/main.tar.gz";
|
||||||
# Don't do this if your machines are on nixpkgs stable.
|
# Don't do this if your machines are on nixpkgs stable.
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
}
|
}
|
||||||
@@ -79,7 +79,7 @@ For the provide flake example, your flake should now look like this:
|
|||||||
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
|
|
||||||
inputs.clan-core = {
|
inputs.clan-core = {
|
||||||
url = "git+https://git.clan.lol/clan/clan-core";
|
url = "https://git.clan.lol/clan/clan-core/archive/main.tar.gz";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user