Skip to content

Commit c0c6443

Browse files
committed
develop: fixed template attributes. edited docs
1 parent 9214b04 commit c0c6443

File tree

3 files changed

+24
-25
lines changed

3 files changed

+24
-25
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ This is the directory structure of this repository:
1313
├── modules
1414
│ ├── home
1515
│ └── nixos
16+
├── overlays
1617
├── pkgs
1718
├── templates
1819
│ ├── dev
@@ -26,6 +27,7 @@ This is the directory structure of this repository:
2627
- `docs`: documentation
2728
- `modules/home`: Home Manager modules
2829
- `modules/nixos`: NixOS modules
30+
- `overlays`: fixes for packages
2931
- `pkgs`: custom packages
3032
- `templates/dev`: development templates
3133
- `templates/nix-config`: templates to kickstart your first nix-config
@@ -81,7 +83,7 @@ cd DIR
8183
nix flake init -t "github:sid115/nix-core#templates.TEMPLATE"
8284
```
8385

84-
`TEMPLATE` has to be the template attribute, for example `dev.c-hello` or `nix-config.hyprland`. See [flake.nix](./flake.nix) for all available templates. Read more about our nix-config templates [here](./docs/create_flake.md).
86+
`TEMPLATE` has to be the template attribute, for example `c-hello` or `hyprland`. See [flake.nix](./flake.nix) for all available templates. Read more about our nix-config templates [here](./docs/create_flake.md).
8587

8688
## Contributing
8789

docs/create_flake.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ Options:
3131
-h, --help Show this help message
3232
```
3333

34-
> Remember to prefix your template with `nix-config`. For example: `-t nix-config.hyprland`.
35-
3634
If you are already on your target machine running NixOS, it is recommended that you set the directory to `~/.config/nixos`, as the `rebuild` script (see below) expects your configuration in this directory.
3735

3836
All templates work right out of the box. You only need to edit the disk partitioning script (`disks.sh`) or provide a [disko](https://github.com/nix-community/disko) configuration (`disko.nix`) in your host directory. A basic single disk partitioning script is provided. Set your disk by its ID, which comes from `ls -lAh /dev/disk/by-id`. When you are happy with your configuration, create a public Git repository to pass to the installation script (see below).

flake.nix

Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -97,29 +97,28 @@
9797
);
9898

9999
templates = {
100-
nix-config = {
101-
hyprland = {
102-
path = ./templates/nix-config/hyprland;
103-
description = "NixOS client configuration for Hyprland.";
104-
};
105-
server = {
106-
path = ./templates/nix-config/server;
107-
description = "Minimal NixOS server configuration.";
108-
};
100+
# nix-config
101+
hyprland = {
102+
path = ./templates/nix-config/hyprland;
103+
description = "NixOS client configuration for Hyprland.";
109104
};
110-
dev = {
111-
c-hello = {
112-
path = ./templates/dev/c-hello;
113-
description = "C hello world project.";
114-
};
115-
py-hello = {
116-
path = ./templates/dev/py-hello;
117-
description = "Python hello world project.";
118-
};
119-
rs-hello = {
120-
path = ./templates/dev/rs-hello;
121-
description = "Rust hello world project.";
122-
};
105+
server = {
106+
path = ./templates/nix-config/server;
107+
description = "Minimal NixOS server configuration.";
108+
};
109+
110+
# dev
111+
c-hello = {
112+
path = ./templates/dev/c-hello;
113+
description = "C hello world project.";
114+
};
115+
py-hello = {
116+
path = ./templates/dev/py-hello;
117+
description = "Python hello world project.";
118+
};
119+
rs-hello = {
120+
path = ./templates/dev/rs-hello;
121+
description = "Rust hello world project.";
123122
};
124123
};
125124
};

0 commit comments

Comments
 (0)