tangled
alpha
login
or
join now
wiro.world
/
dotfiles
2
fork
atom
yep, more dotfiles
2
fork
atom
overview
issues
1
pulls
1
pipelines
templates: change input ref format to explicit one
wiro.world
2 months ago
ec257ddf
a0a817b3
verified
This commit was signed with the committer's
known signature
.
wiro.world
SSH Key Fingerprint:
SHA256:SmMcWpNAnL+VAgItSawvXgdPVn7f1rsyAuB/5VNclKY=
+12
-12
4 changed files
expand all
collapse all
unified
split
templates
blank
flake.nix
c
flake.nix
rust
flake.nix
rust-pkg
flake.nix
+3
-3
templates/blank/flake.nix
···
1
1
{
2
2
inputs = {
3
3
-
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
3
3
+
nixpkgs.url = "github:NixOS/nixpkgs?ref=nixos-unstable";
4
4
};
5
5
6
6
outputs = { self, nixpkgs }:
···
10
10
forAllSystems = genAttrs [ "x86_64-linux" "aarch64-linux" "aarch64-darwin" ];
11
11
forAllPkgs = function: forAllSystems (system: function pkgs.${system});
12
12
13
13
-
pkgs = forAllSystems (system: (import nixpkgs {
13
13
+
pkgs = forAllSystems (system: import nixpkgs {
14
14
inherit system;
15
15
overlays = [ ];
16
16
-
}));
16
16
+
});
17
17
in
18
18
{
19
19
formatter = forAllPkgs (pkgs: pkgs.nixpkgs-fmt);
+3
-3
templates/c/flake.nix
···
1
1
{
2
2
inputs = {
3
3
-
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
3
3
+
nixpkgs.url = "github:NixOS/nixpkgs?ref=nixos-unstable";
4
4
};
5
5
6
6
outputs = { self, nixpkgs }:
···
10
10
forAllSystems = genAttrs [ "x86_64-linux" "aarch64-linux" "aarch64-darwin" ];
11
11
forAllPkgs = function: forAllSystems (system: function pkgs.${system});
12
12
13
13
-
pkgs = forAllSystems (system: (import nixpkgs {
13
13
+
pkgs = forAllSystems (system: import nixpkgs {
14
14
inherit system;
15
15
overlays = [ ];
16
16
-
}));
16
16
+
});
17
17
in
18
18
{
19
19
formatter = forAllPkgs (pkgs: pkgs.nixpkgs-fmt);
+3
-3
templates/rust-pkg/flake.nix
···
1
1
{
2
2
inputs = {
3
3
-
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
3
3
+
nixpkgs.url = "github:NixOS/nixpkgs?ref=nixos-unstable";
4
4
5
5
rust-overlay.url = "github:oxalica/rust-overlay";
6
6
rust-overlay.inputs.nixpkgs.follows = "nixpkgs";
···
18
18
19
19
mkApp = (program: { type = "app"; inherit program; });
20
20
21
21
-
pkgs = forAllSystems (system: (import nixpkgs {
21
21
+
pkgs = forAllSystems (system: import nixpkgs {
22
22
inherit system;
23
23
overlays = [ (import rust-overlay) ];
24
24
-
}));
24
24
+
});
25
25
in
26
26
{
27
27
formatter = forAllPkgs (pkgs: pkgs.nixpkgs-fmt);
+3
-3
templates/rust/flake.nix
···
1
1
{
2
2
inputs = {
3
3
-
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
3
3
+
nixpkgs.url = "github:NixOS/nixpkgs?ref=nixos-unstable";
4
4
5
5
rust-overlay.url = "github:oxalica/rust-overlay";
6
6
rust-overlay.inputs.nixpkgs.follows = "nixpkgs";
···
13
13
forAllSystems = genAttrs [ "x86_64-linux" "aarch64-linux" "aarch64-darwin" ];
14
14
forAllPkgs = function: forAllSystems (system: function pkgs.${system});
15
15
16
16
-
pkgs = forAllSystems (system: (import nixpkgs {
16
16
+
pkgs = forAllSystems (system: import nixpkgs {
17
17
inherit system;
18
18
overlays = [ (import rust-overlay) ];
19
19
-
}));
19
19
+
});
20
20
in
21
21
{
22
22
formatter = forAllPkgs (pkgs: pkgs.nixpkgs-fmt);