2
2
3
3
The only dependency is nix, so make sure you have it [ installed] [ install-nix ] .
4
4
5
- ## Get the Template
5
+ ## Get a Template
6
6
7
- If you currently don't have flakes setup, you can utilize the digga shell to
8
- pull the template:
7
+ If you currently don't have flakes support, you can temporarily enable them:
9
8
10
9
``` sh
11
- nix-shell " https://github.com/divnix/digga/archive/main.tar.gz" \
12
- --run " nix flake init -t github:divnix/digga"
10
+ nix flake init --experimental-features ' nix-command flakes' -t github:divnix/digga
13
11
```
14
12
15
- If you already have flakes support, you can directly pull the template:
13
+ If you already have flakes support, you can simply pull the template:
16
14
17
15
``` sh
18
16
nix flake init -t github:divnix/digga
19
17
```
20
18
21
- Then make sure to create the git repository:
19
+ Make sure to create the git repository:
22
20
23
21
``` sh
24
22
git init
@@ -35,15 +33,17 @@ In addition, the [binary cache](../integrations/cachix.md) is added for faster d
35
33
36
34
> # _ Notes:_
37
35
>
38
- > - Flakes ignore files that have not been added to git, so be sure to stage new
36
+ > - Flakes ignore files that are not tracked by git, so be sure to stage new
39
37
> files before building the system.
40
38
> - You can choose to simply clone the repo with git if you want to follow
41
39
> upstream changes.
42
- > - If the ` nix-shell -p cachix --run "cachix use nrdxp" ` line doesn't work you
43
- > can try with sudo: ` sudo nix-shell -p cachix --run "cachix use nrdxp" `
40
+ > - There are other templates. The default is ` devos ` , which is opinionated and
41
+ > implements the most features. Other templates can be found with
42
+ > ` nix flake show ` or by viewing Digga's flake.nix. Other templates can be
43
+ > used with ` nix flake init -t github:divnix/digga#<templateName> `
44
44
45
45
## Next Steps
46
46
47
- - [ Make installable ISO] ( ./iso.md )
47
+ - [ Make an installable ISO] ( ./iso.md )
48
48
49
49
[ install-nix ] : https://nixos.org/manual/nix/stable/#sect-multi-user-installation
0 commit comments