1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 19:46:05 +01:00

flake.nix: remove deprecations (#6485)

Multiple stable releases removed from inception. Don't need to keep it
around anymore.
This commit is contained in:
Austin Horstman 2025-02-18 11:46:26 -08:00 committed by GitHub
parent 5cfbf5cc37
commit a135aae1be
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -9,15 +9,11 @@
home-manager = ./nixos; home-manager = ./nixos;
default = home-manager; default = home-manager;
}; };
# deprecated in Nix 2.8
nixosModule = self.nixosModules.default;
darwinModules = rec { darwinModules = rec {
home-manager = ./nix-darwin; home-manager = ./nix-darwin;
default = home-manager; default = home-manager;
}; };
# unofficial; deprecated in Nix 2.8
darwinModule = self.darwinModules.default;
flakeModules = rec { flakeModules = rec {
home-manager = ./flake-module.nix; home-manager = ./flake-module.nix;
@ -25,10 +21,7 @@
}; };
templates = { templates = {
standalone = { default = self.templates.standalone;
path = ./templates/standalone;
description = "Standalone setup";
};
nixos = { nixos = {
path = ./templates/nixos; path = ./templates/nixos;
description = "Home Manager as a NixOS module,"; description = "Home Manager as a NixOS module,";
@ -37,10 +30,12 @@
path = ./templates/nix-darwin; path = ./templates/nix-darwin;
description = "Home Manager as a nix-darwin module,"; description = "Home Manager as a nix-darwin module,";
}; };
standalone = {
path = ./templates/standalone;
description = "Standalone setup";
};
}; };
defaultTemplate = self.templates.standalone;
lib = import ./lib { inherit (nixpkgs) lib; }; lib = import ./lib { inherit (nixpkgs) lib; };
} // (let } // (let
forAllSystems = nixpkgs.lib.genAttrs nixpkgs.lib.systems.flakeExposed; forAllSystems = nixpkgs.lib.genAttrs nixpkgs.lib.systems.flakeExposed;
@ -69,7 +64,5 @@
docs-json = docs.options.json; docs-json = docs.options.json;
docs-manpages = docs.manPages; docs-manpages = docs.manPages;
}); });
defaultPackage = forAllSystems (system: self.packages.${system}.default);
}); });
} }