-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
80 lines (57 loc) · 2.67 KB
/
flake.nix
File metadata and controls
80 lines (57 loc) · 2.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
{
description = "Determinate Systems flake templates";
outputs =
{ self, ... }@inputs:
{
templates = {
default = {
description = "Default flake template for Determinate Nix";
path = ./default;
welcomeText = ''
# Welcome to your new Nix flake ❄️🍁
To activate your new flake's development environment, run `nix develop` or `direnv allow` if you use direnv.
For a more interactive flake initialization experience, delete the `flake.nix` that was just created and use fh, the CLI for FlakeHub:
nix run "https://flakehub.com/f/DeterminateSystems/fh/0" -- init
For more on flakes, check out **Zero to Nix**, our flake-forward guide to Nix:
https://zero-to-nix.com
'';
};
nix-darwin = {
description = "A flake template for nix-darwin and Determinate Nix";
path = ./nix-darwin;
welcomeText = ''
# Welcome to your new nix-darwin configuration flake ❄️🍁🍎
Before applying this configuration, change the `username` and `system` to values that make sense for your macOS machine.
To apply the nix-darwin configuration in this flake, run the supplied script:
nix develop --command reload-nix-darwin-configuration
For ideas on how to configure your system, consult the nix-darwin reference documentation:
https://nix-darwin.github.io/nix-darwin/manual
'';
};
nixos = {
description = "A flake template for NixOS with Determinate Nix";
path = ./nixos;
welcomeText = ''
# Welcome to your new NixOS configuration flake ❄️🍁
The NixOS system output by this flake comes with Determinate Nix installed.
You can build the toplevel for the configuration like this:
nix build .#nixosConfigurations.my-system.config.system.build.toplevel
You can search for NixOS configuration options here:
https://search.nixos.org/options
'';
};
rust = {
description = "A flake template for Rust";
path = ./rust;
welcomeText = ''
# Welcome to your new NixOS configuration flake ❄️🦀
To activate your new flake's development environment, run `nix develop` or `direnv allow` if you use direnv.
To run the Rust program in this template (you should a warm greeting):
nix develop --command cargo run
To build the Rust program using Nix:
nix build
'';
};
};
};
}