From a135aae1be749a10227413f9eb944a6f887dab86 Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Tue, 18 Feb 2025 11:46:26 -0800 Subject: [PATCH] flake.nix: remove deprecations (#6485) Multiple stable releases removed from inception. Don't need to keep it around anymore. --- flake.nix | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/flake.nix b/flake.nix index fdded59de..918507dde 100644 --- a/flake.nix +++ b/flake.nix @@ -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); }); }