Skip to content

Commit

Permalink
flake.nix: remove deprecations (#6485)
Browse files Browse the repository at this point in the history
Multiple stable releases removed from inception. Don't need to keep it
around anymore.
  • Loading branch information
khaneliman authored Feb 18, 2025
1 parent 5cfbf5c commit a135aae
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,19 @@
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;
default = home-manager;
};

templates = {
standalone = {
path = ./templates/standalone;
description = "Standalone setup";
};
default = self.templates.standalone;
nixos = {
path = ./templates/nixos;
description = "Home Manager as a NixOS module,";
Expand All @@ -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;
Expand Down Expand Up @@ -69,7 +64,5 @@
docs-json = docs.options.json;
docs-manpages = docs.manPages;
});

defaultPackage = forAllSystems (system: self.packages.${system}.default);
});
}

0 comments on commit a135aae

Please sign in to comment.