Skip to content

Commit

Permalink
Upstreamed flake-module.nix to nixos-flake
Browse files Browse the repository at this point in the history
  • Loading branch information
srid committed Oct 1, 2024
1 parent 56c93e3 commit 19b0fe2
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 62 deletions.
52 changes: 0 additions & 52 deletions flake-module.nix

This file was deleted.

7 changes: 4 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 3 additions & 6 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
nixos-hardware.url = "github:NixOS/nixos-hardware";
nixos-flake.url = "github:srid/nixos-flake";
nixos-flake.url = "github:srid/nixos-flake/autoWire"; # https://github.com/srid/nixos-flake/pull/74
disko.url = "github:nix-community/disko";
disko.inputs.nixpkgs.follows = "nixpkgs";
ragenix.url = "github:yaxitech/ragenix";
Expand Down Expand Up @@ -39,12 +39,9 @@
imports = (with builtins;
map
(fn: ./modules/flake-parts/${fn})
(attrNames (readDir ./modules/flake-parts))) ++
[
./flake-module.nix
];
(attrNames (readDir ./modules/flake-parts)));

perSystem = { self', pkgs, lib, system, ... }: {
perSystem = { lib, system, ... }: {
# Make our overlay available to the devShell
# "Flake parts does not yet come with an endorsed module that initializes the pkgs argument.""
# So we must do this manually; https://flake.parts/overlays#consuming-an-overlay
Expand Down
3 changes: 2 additions & 1 deletion modules/flake-parts/nixos-flake.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{ inputs, ... }:
{
imports = [
inputs.nixos-flake.flakeModule
inputs.nixos-flake.flakeModules.default
inputs.nixos-flake.flakeModules.autoWire
];
perSystem = { self', ... }: {
packages.default = self'.packages.activate;
Expand Down

0 comments on commit 19b0fe2

Please sign in to comment.