-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake-example.nix
More file actions
70 lines (47 loc) · 1.79 KB
/
flake-example.nix
File metadata and controls
70 lines (47 loc) · 1.79 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
#{
#description = "Flake description";
/*inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
}; */
#outputs = {self, ...}/*@inputs*/: {
##Executed by 'nix flake check'
#checks."<system>"."<name>" = derivation;
##Executed by 'nix build .#<name>'
#packages."<system>"."<name>" = derivation;
##Executed by 'nix build .'
#packages."<system>".default = derivation;
##Executed by 'nix run .#<name>'
/*apps."<system>."<name>" = {
type = "app";
program = "<store-path>";
}; */
##Executed by 'nix run . -- <args?>'
#apps."<system>".default = { type = "app"; program = "..."; };
##Formatter (alejandra, nixfmt or nixpkgs-fmt)
#formatter."<system>" = derivation;
##Used for nixpkgs packages, also accessible via 'nix build .#<name>'
#legacyPackages."<system>"."<name>" = derivation;
##Overlay, consumed by other flakes
#overlays."<name>" = final: prev: {};
##NixOS modules, consumed by other flakes
#nixosModules."<name>" = {config, ...}: {options = {}; config ={}; };
##NixOS default module
#nixosModules.default = {config, ...}: {options = {}; config ={}; };
##Used with 'nixos-rebuild switch --flake .#<hostname>'
##nixosConfigurations."<hostname>".config.system.build.toplevel must be a derivation
#nixosConfigurations."<hostname>" = {};
##Used by 'nix develop .#<name>'
#devshells."<system>"."<name>" = derivation;
##Used by 'nix develop .default'
#devshells."<system>".default = derivation;
##Hydra build jobs
#hydraJobs."<attr>"."<system>" = derivation;
##Used by 'nix flake init -t <flake>#<name>'
/*templates."<name>" = {
path = "<store-path>";
description = "template description here";
}; */
##Used by 'nix flake init -t <flake>'
#templates.default = { path = "<store-path>"; description = "template description here"; };
#};
#}