diff options
Diffstat (limited to '')
| -rw-r--r-- | home-manager/flake.nix | 92 |
1 files changed, 38 insertions, 54 deletions
diff --git a/home-manager/flake.nix b/home-manager/flake.nix index 490aa79..59f677d 100644 --- a/home-manager/flake.nix +++ b/home-manager/flake.nix @@ -1,59 +1,43 @@ { - description = "Home-manager configuration"; + description = "Home-manager configuration"; - nixConfig = { - experimental-feature = ["nix-command" "flakes"]; - }; - inputs = { - nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11"; - nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-24.11"; - nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable"; - flake-utils.url = "github:numtide/flake-utils"; - home-manager = { - url = "github:nix-community/home-manager/release-24.11"; - inputs.nixpkgs.follows = "nixpkgs"; - }; - iamb.url = "github:ulyssa/iamb"; - }; + nixConfig = { + experimental-feature = [ + "nix-command" + "flakes" + ]; + }; + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11"; + # nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable"; + flake-utils.url = "github:numtide/flake-utils"; + home-manager = { + url = "github:nix-community/home-manager/release-24.11"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + iamb.url = "github:ulyssa/iamb"; + }; - - - outputs = {self, nixpkgs, nixpkgs-stable, nixpkgs-unstable, flake-utils, home-manager, iamb ,... }@inputs: - let - inherit (self) outputs; - - pkgsForSystem = system: nixpkgsSource: import nixpkgsSource { - inherit system; - }; - HomeConfiguration = args: - let - nixpkgs = args.nixpkgs or nixpkgs-stable; - in - home-manager.lib.homeManagerConfiguration { - modules = [ - (import ./home ) - (import ./modules ) - ]; - extraSpecialArgs = { - inherit (args) nixpkgs; - } // args.extraSpecialArgs; - pkgs = pkgsForSystem (args.system or "x86_64-linux") nixpkgs; - }; - - - in flake-utils.lib.eachSystem [ - "x86_64-linux" - ] (system: { - legacyPackages = pkgsForSystem system nixpkgs; - }) // { - # overlays = import ./overlays {inherit inputs;}; - homeConfigurations = { - "wilkuu" = HomeConfiguration { - extraSpecialArgs = { - }; - }; - }; - inherit home-manager; - inherit (home-manager) packages; + outputs = + { + self, + nixpkgs, + home-manager, + ... + }@inputs: + let + inherit (self) outputs; + in { + homeConfigurations = { + "wilkuu" = home-manager.lib.homeManagerConfiguration { + modules = [ + (import ./home) + (import ./modules) + ]; + # TODO: Figure out how to ship on other platforms in case you want to use a NixOS Pi, or a 32bit machine + pkgs = nixpkgs.legacyPackages.x86_64-linux; + extraSpecialArgs = {inherit inputs outputs;}; }; + }; + }; } |
