use variable for main channel

This commit is contained in:
2026-03-30 23:34:04 +02:00
parent f82a769e41
commit 5fba480136
2 changed files with 9 additions and 5 deletions

View File

@@ -1,7 +1,10 @@
let
channel = "unstable";
in
{
description = "L config";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nixpkgs.url = "github:nixos/nixpkgs/nixos-${channel}";
home-manager = {
url = "github:nix-community/home-manager";
@@ -47,7 +50,7 @@
{
home-manager.useUserPackages = true;
home-manager.users.vbm = ./home/home.nix;
home-manager.extraSpecialArgs = { inherit inputs system; };
home-manager.extraSpecialArgs = { inherit inputs system channel; };
home-manager.sharedModules = [
inputs.nixvim.homeModules.nixvim
inputs.sops-nix.homeManagerModules.sops

View File

@@ -2,6 +2,7 @@
pkgs,
inputs,
system,
channel,
...
}:
{
@@ -45,7 +46,7 @@
params = [
{
name = "channel";
value = "unstable";
value = channel;
}
{
name = "query";
@@ -67,7 +68,7 @@
params = [
{
name = "channel";
value = "unstable";
value = channel;
}
{
name = "search";
@@ -92,7 +93,7 @@
}
{
name = "channel";
value = "unstable";
value = channel;
}
{
name = "query";