Skip to content

Commit 1515b77

Browse files
authored
use nixpkgs-unstable channel (#58)
1 parent 3911266 commit 1515b77

10 files changed

Lines changed: 18 additions & 21 deletions

File tree

dev/flake.lock

Lines changed: 7 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dev/flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
};
2828
url = "github:nix-community/nix-unit";
2929
};
30-
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
30+
nixpkgs.url = "https://channels.nixos.org/nixpkgs-unstable/nixexprs.tar.xz";
3131
nixpkgs-lib.follows = "nixpkgs";
3232
systems.url = "github:nix-systems/default";
3333
treefmt-nix = {

dev/modules/_lib/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ let
66
isEmpty =
77
x:
88
(
9-
(builtins.isNull x)
9+
(isNull x)
1010
|| (lib.isStringLike x && lib.stringLength (lib.trim x) == 0)
1111
|| (lib.isList x && lib.length x == 0)
1212
|| (lib.isAttrs x && x == { })

modules/dendritic/nixpkgs.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{
33

44
flake-file.inputs = {
5-
nixpkgs.url = lib.mkDefault "github:nixos/nixpkgs/nixpkgs-unstable";
5+
nixpkgs.url = lib.mkDefault "https://channels.nixos.org/nixpkgs-unstable/nixexprs.tar.xz";
66
nixpkgs-lib.follows = lib.mkDefault "nixpkgs";
77
};
88

modules/write-flake.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,13 @@ let
5353
else if lib.isAttrs x then
5454
lib.pipe x [
5555
(lib.mapAttrsToList nixAttr)
56-
(map ({ name, value }: ''${name} = ${nixCode value}; ''))
57-
(values: ''{ ${lib.concatStringsSep " " values} }'')
56+
(map ({ name, value }: "${name} = ${nixCode value}; "))
57+
(values: "{ ${lib.concatStringsSep " " values} }")
5858
]
5959
else if lib.isList x then
6060
lib.pipe x [
6161
(lib.map nixCode)
62-
(values: ''[ ${lib.concatStringsSep " " values} ]'')
62+
(values: "[ ${lib.concatStringsSep " " values} ]")
6363
]
6464
else if x == true then
6565
"true"

templates/default/flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
inputs = {
88
flake-file.url = "github:vic/flake-file";
99
flake-parts.url = "github:hercules-ci/flake-parts";
10-
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
10+
nixpkgs.url = "https://channels.nixos.org/nixpkgs-unstable/nixexprs.tar.xz";
1111
systems.url = "github:nix-systems/default";
1212
};
1313

templates/default/modules/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
flake-file.inputs = {
1111
flake-file.url = "github:vic/flake-file";
1212
flake-parts.url = "github:hercules-ci/flake-parts";
13-
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
13+
nixpkgs.url = "https://channels.nixos.org/nixpkgs-unstable/nixexprs.tar.xz";
1414
systems.url = "github:nix-systems/default";
1515
};
1616

templates/dendritic/flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
url = "github:hercules-ci/flake-parts";
1212
};
1313
import-tree.url = "github:vic/import-tree";
14-
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
14+
nixpkgs.url = "https://channels.nixos.org/nixpkgs-unstable/nixexprs.tar.xz";
1515
nixpkgs-lib.follows = "nixpkgs";
1616
systems.url = "github:nix-systems/default";
1717
};

templates/parts/flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
inputs = {
1313
flake-file.url = "github:vic/flake-file";
1414
flake-parts.url = "github:hercules-ci/flake-parts";
15-
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
15+
nixpkgs.url = "https://channels.nixos.org/nixpkgs-unstable/nixexprs.tar.xz";
1616
systems.url = "github:nix-systems/default";
1717
treefmt-nix.url = "github:numtide/treefmt-nix";
1818
};

templates/parts/outputs.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ inputs.flake-parts.lib.mkFlake { inherit inputs; } {
33
flake-file.inputs = {
44
flake-file.url = "github:vic/flake-file";
55
flake-parts.url = "github:hercules-ci/flake-parts";
6-
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
6+
nixpkgs.url = "https://channels.nixos.org/nixpkgs-unstable/nixexprs.tar.xz";
77
};
88

99
imports = [

0 commit comments

Comments
 (0)