|
2 | 2 | description = "My Personal Home Manager Configuration"; |
3 | 3 |
|
4 | 4 | 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"; |
7 | 10 | home-manager.inputs.nixpkgs.follows = "nixpkgs"; |
| 11 | + |
8 | 12 | sops-nix.url = "github:mic92/sops-nix"; |
9 | 13 | sops-nix.inputs.nixpkgs.follows = "nixpkgs"; |
| 14 | + |
10 | 15 | bash-it = { |
11 | 16 | url = "github:Bash-it/bash-it"; |
12 | 17 | flake = false; |
13 | 18 | }; |
14 | 19 | }; |
15 | 20 |
|
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: |
17 | 22 | 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 | + ]; |
23 | 42 | }; |
24 | | - modules = [ |
25 | | - { |
26 | | - home.username = username; |
27 | | - home.homeDirectory = "/home/${username}"; |
28 | | - } |
29 | | - ./home.nix |
30 | | - ]; |
31 | | - }; |
32 | 43 | in |
33 | 44 | { |
34 | 45 | homeConfigurations = { |
|
0 commit comments