aboutsummaryrefslogtreecommitdiffstats
path: root/inputs.nix
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-08-17 22:18:51 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-08-17 22:18:51 +0200
commit81026bec6430fc8a79e5fcf40d5f3aff2af68001 (patch)
tree750dfb056db9069e62665f5e2006e0b47a3fd63d /inputs.nix
parentpkgs/tails-iso/update.sh: Use correct path to this package (diff)
downloadnixos-config-81026bec6430fc8a79e5fcf40d5f3aff2af68001.zip
inputs.nix: Use nixos channels instead of github for the nixos tarballs
This reduces the dependency on github somewhat.
Diffstat (limited to '')
-rw-r--r--inputs.nix28
1 files changed, 15 insertions, 13 deletions
diff --git a/inputs.nix b/inputs.nix
index c899f356..b874df3c 100644
--- a/inputs.nix
+++ b/inputs.nix
@@ -1,6 +1,5 @@
let
- nixpkgsVersion = "26.05";
- nixos-stable = "nixos-${nixpkgsVersion}";
+ nixosVersion = "26.05";
lanzabooteVersion = "v1.1.0";
@@ -10,27 +9,34 @@ let
repo = "nixpkgs";
inherit ref;
};
+ w_tarball = url: {
+ type = "tarball";
+ inherit url;
+ };
+
+ nixos_stable = "https://channels.nixos.org/nixos-${nixosVersion}/nixexprs.tar.zst";
+ nixos_unstable = "https://channels.nixos.org/nixos-unstable/nixexprs.tar.zst";
in {
_unflake.dedupRules = [
{
when = w_nixpkgs "nixpkgs-unstable";
- set = {ref = "nixos-unstable";};
+ set = w_tarball nixos_unstable;
}
{
when = w_nixpkgs "nixos-unstable-small";
- set = {ref = "nixos-unstable";};
+ set = w_tarball nixos_unstable;
}
{
when = w_nixpkgs "nixos-25.05";
- set = {ref = nixos-stable;};
+ set = w_tarball nixos_stable;
}
{
when = w_nixpkgs "nixos-25.11";
- set = {ref = nixos-stable;};
+ set = w_tarball nixos_stable;
}
{
when = w_nixpkgs "nixos-26.05";
- set = {ref = nixos-stable;};
+ set = w_tarball nixos_stable;
}
{
@@ -107,12 +113,8 @@ in {
"nixos-generators" = {
url = "github:nix-community/nixos-generators/master";
};
- "nixpkgs-stable" = {
- url = "github:NixOS/nixpkgs/nixos-${nixpkgsVersion}";
- };
- "nixpkgs" = {
- url = "github:NixOS/nixpkgs/nixos-unstable-small";
- };
+ "nixpkgs-stable" = {url = "tarball+${nixos_stable}";};
+ "nixpkgs" = {url = "tarball+${nixos_unstable}";};
"nixvim" = {
url = "github:nix-community/nixvim/main";
};