yep, more dotfiles

templates: change input ref format to explicit one

wiro.world ec257ddf a0a817b3

verified
+12 -12
+3 -3
templates/blank/flake.nix
··· 1 1 { 2 2 inputs = { 3 - nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; 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 - pkgs = forAllSystems (system: (import nixpkgs { 13 + pkgs = forAllSystems (system: import nixpkgs { 14 14 inherit system; 15 15 overlays = [ ]; 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 - nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; 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 - pkgs = forAllSystems (system: (import nixpkgs { 13 + pkgs = forAllSystems (system: import nixpkgs { 14 14 inherit system; 15 15 overlays = [ ]; 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 - nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; 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 - pkgs = forAllSystems (system: (import nixpkgs { 21 + pkgs = forAllSystems (system: import nixpkgs { 22 22 inherit system; 23 23 overlays = [ (import rust-overlay) ]; 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 - nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; 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 - pkgs = forAllSystems (system: (import nixpkgs { 16 + pkgs = forAllSystems (system: import nixpkgs { 17 17 inherit system; 18 18 overlays = [ (import rust-overlay) ]; 19 - })); 19 + }); 20 20 in 21 21 { 22 22 formatter = forAllPkgs (pkgs: pkgs.nixpkgs-fmt);