Skip to content

Commit 49f65da

Browse files
committed
chore(flake): migrate base to nixos-25.11 and add hybrid channels
Updates system base to stable channel (25.11) for reliability. Adds 'unstable' and 'master' inputs with allowUnfree=true to support specific bleeding-edge packages via extraSpecialArgs.
1 parent 8b0797b commit 49f65da

1 file changed

Lines changed: 27 additions & 16 deletions

File tree

flake.nix

Lines changed: 27 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,33 +2,44 @@
22
description = "My Personal Home Manager Configuration";
33

44
inputs = {
5-
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
6-
home-manager.url = "github:nix-community/home-manager";
5+
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.11";
6+
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
7+
nixpkgs-master.url = "github:nixos/nixpkgs/master";
8+
9+
home-manager.url = "github:nix-community/home-manager/release-25.11";
710
home-manager.inputs.nixpkgs.follows = "nixpkgs";
11+
812
sops-nix.url = "github:mic92/sops-nix";
913
sops-nix.inputs.nixpkgs.follows = "nixpkgs";
14+
1015
bash-it = {
1116
url = "github:Bash-it/bash-it";
1217
flake = false;
1318
};
1419
};
1520

16-
outputs = { self, nixpkgs, home-manager, sops-nix, bash-it }@inputs:
21+
outputs = { self, nixpkgs, nixpkgs-unstable, nixpkgs-master, home-manager, sops-nix, bash-it }@inputs:
1722
let
18-
mkHome = { username, system }: home-manager.lib.homeManagerConfiguration {
19-
pkgs = nixpkgs.legacyPackages.${system};
20-
extraSpecialArgs = {
21-
inherit sops-nix;
22-
inherit inputs;
23+
mkHome = { username, system }:
24+
let
25+
config = { allowUnfree = true; };
26+
pkgs = import nixpkgs { inherit system config; };
27+
pkgsUnstable = import nixpkgs-unstable { inherit system config; };
28+
pkgsMaster = import nixpkgs-master { inherit system config; };
29+
in
30+
home-manager.lib.homeManagerConfiguration {
31+
inherit pkgs;
32+
extraSpecialArgs = {
33+
inherit sops-nix inputs pkgsUnstable pkgsMaster;
34+
};
35+
modules = [
36+
{
37+
home.username = username;
38+
home.homeDirectory = "/home/${username}";
39+
}
40+
./home.nix
41+
];
2342
};
24-
modules = [
25-
{
26-
home.username = username;
27-
home.homeDirectory = "/home/${username}";
28-
}
29-
./home.nix
30-
];
31-
};
3243
in
3344
{
3445
homeConfigurations = {

0 commit comments

Comments
 (0)