Generate flake.nix from module options. Discussions: https://oeiuwq.zulipchat.com/join/nqp26cd4kngon6mo3ncgnuap/ dendrix.oeiuwq.com/Dendritic.html
dendritic nix inputs

use nixpkgs-unstable channel (#58)

authored by oeiuwq.com and committed by

GitHub 1515b77c 3911266a

+18 -21
+7 -10
dev/flake.lock
··· 136 136 }, 137 137 "nixpkgs": { 138 138 "locked": { 139 - "lastModified": 1763618868, 140 - "narHash": "sha256-v5afmLjn/uyD9EQuPBn7nZuaZVV9r+JerayK/4wvdWA=", 141 - "owner": "nixos", 142 - "repo": "nixpkgs", 143 - "rev": "a8d610af3f1a5fb71e23e08434d8d61a466fc942", 144 - "type": "github" 139 + "lastModified": 1770843696, 140 + "narHash": "sha256-9SFCZkVcpDOV6unH5hVEy4+dB0rxMuUoBnDAO6vshac=", 141 + "rev": "2343bbb58f99267223bc2aac4fc9ea301a155a16", 142 + "type": "tarball", 143 + "url": "https://releases.nixos.org/nixpkgs/nixpkgs-26.05pre944764.2343bbb58f99/nixexprs.tar.xz" 145 144 }, 146 145 "original": { 147 - "owner": "nixos", 148 - "ref": "nixpkgs-unstable", 149 - "repo": "nixpkgs", 150 - "type": "github" 146 + "type": "tarball", 147 + "url": "https://channels.nixos.org/nixpkgs-unstable/nixexprs.tar.xz" 151 148 } 152 149 }, 153 150 "root": {
+1 -1
dev/flake.nix
··· 27 27 }; 28 28 url = "github:nix-community/nix-unit"; 29 29 }; 30 - nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable"; 30 + nixpkgs.url = "https://channels.nixos.org/nixpkgs-unstable/nixexprs.tar.xz"; 31 31 nixpkgs-lib.follows = "nixpkgs"; 32 32 systems.url = "github:nix-systems/default"; 33 33 treefmt-nix = {
+1 -1
dev/modules/_lib/default.nix
··· 6 6 isEmpty = 7 7 x: 8 8 ( 9 - (builtins.isNull x) 9 + (isNull x) 10 10 || (lib.isStringLike x && lib.stringLength (lib.trim x) == 0) 11 11 || (lib.isList x && lib.length x == 0) 12 12 || (lib.isAttrs x && x == { })
+1 -1
modules/dendritic/nixpkgs.nix
··· 2 2 { 3 3 4 4 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"; 6 6 nixpkgs-lib.follows = lib.mkDefault "nixpkgs"; 7 7 }; 8 8
+3 -3
modules/write-flake.nix
··· 53 53 else if lib.isAttrs x then 54 54 lib.pipe x [ 55 55 (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} }") 58 58 ] 59 59 else if lib.isList x then 60 60 lib.pipe x [ 61 61 (lib.map nixCode) 62 - (values: ''[ ${lib.concatStringsSep " " values} ]'') 62 + (values: "[ ${lib.concatStringsSep " " values} ]") 63 63 ] 64 64 else if x == true then 65 65 "true"
+1 -1
templates/default/flake.nix
··· 7 7 inputs = { 8 8 flake-file.url = "github:vic/flake-file"; 9 9 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"; 11 11 systems.url = "github:nix-systems/default"; 12 12 }; 13 13
+1 -1
templates/default/modules/default.nix
··· 10 10 flake-file.inputs = { 11 11 flake-file.url = "github:vic/flake-file"; 12 12 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"; 14 14 systems.url = "github:nix-systems/default"; 15 15 }; 16 16
+1 -1
templates/dendritic/flake.nix
··· 11 11 url = "github:hercules-ci/flake-parts"; 12 12 }; 13 13 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"; 15 15 nixpkgs-lib.follows = "nixpkgs"; 16 16 systems.url = "github:nix-systems/default"; 17 17 };
+1 -1
templates/parts/flake.nix
··· 12 12 inputs = { 13 13 flake-file.url = "github:vic/flake-file"; 14 14 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"; 16 16 systems.url = "github:nix-systems/default"; 17 17 treefmt-nix.url = "github:numtide/treefmt-nix"; 18 18 };
+1 -1
templates/parts/outputs.nix
··· 3 3 flake-file.inputs = { 4 4 flake-file.url = "github:vic/flake-file"; 5 5 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"; 7 7 }; 8 8 9 9 imports = [