Skip to content
Snippets Groups Projects
Verified Commit 3047d451 authored by Xerz's avatar Xerz :cat2:
Browse files

Added basic feature parity with upstream flake

parent 1f44011a
Branches main
No related tags found
No related merge requests found
......@@ -5,7 +5,7 @@
sysrepo.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
agenix = {
url = "github:ryantm/agenix";
inputs.nixpkgs.follows = "sysrepo";
inputs.nixpkgs.follows = "sysrepo";
};
lix-module = {
url = "https://git.lix.systems/lix-project/nixos-module/archive/main.tar.gz";
......@@ -14,18 +14,37 @@
};
outputs =
{ self, sysrepo, agenix, ... }@inputs:
{
self,
sysrepo,
agenix,
...
}@inputs:
let
forAllSystems = with sysrepo.lib; genAttrs (import agenix.inputs.systems);
in
{
nixosModules = agenix.nixosModules;
darwinModules = agenix.darwinModules;
homeManagerModules = agenix.homeManagerModules;
overlays.default =
final: prev:
let
pkgs = prev.extend inputs.lix-module.overlays.default;
in
{
agenix = prev.callPackage "${inputs.agenix}/pkgs/agenix.nix" { };
};
packages = forAllSystems (
system:
let
pkgs = sysrepo.legacyPackages.${system}.extend inputs.lix-module.overlays.default;
in
rec {
agenix = pkgs.callPackage "${inputs.agenix}/pkgs/agenix.nix" {};
agenix = pkgs.callPackage "${inputs.agenix}/pkgs/agenix.nix" { };
doc = pkgs.callPackage "${inputs.agenix}/pkgs/doc.nix" { inherit self; };
default = agenix;
}
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment