1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 11:36: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;
default = home-manager;
};
# deprecated in Nix 2.8
nixosModule = self.nixosModules.default;
darwinModules = rec {
home-manager = ./nix-darwin;
default = home-manager;
};
# unofficial; deprecated in Nix 2.8
darwinModule = self.darwinModules.default;
flakeModules = rec {
home-manager = ./flake-module.nix;
@ -25,10 +21,7 @@
};
templates = {
standalone = {
path = ./templates/standalone;
description = "Standalone setup";
};
default = self.templates.standalone;
nixos = {
path = ./templates/nixos;
description = "Home Manager as a NixOS module,";
@ -37,10 +30,12 @@
path = ./templates/nix-darwin;
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; };
} // (let
forAllSystems = nixpkgs.lib.genAttrs nixpkgs.lib.systems.flakeExposed;
@ -69,7 +64,5 @@
docs-json = docs.options.json;
docs-manpages = docs.manPages;
});
defaultPackage = forAllSystems (system: self.packages.${system}.default);
});
}