1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-10 23:00:39 +02:00

feat: inherit agenix-rekey apps

This commit is contained in:
oddlama 2023-01-31 01:18:04 +01:00
parent fa8c14607c
commit 1dd36e9f6b
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
3 changed files with 36 additions and 39 deletions

View file

@ -33,19 +33,9 @@
inputs.flake-compat.follows = "flake-compat";
};
agenix = {
url = "github:ryantm/agenix";
inputs.nixpkgs.follows = "nixpkgs";
};
agenix-rekey.url = "github:oddlama/agenix-rekey";
ragenix = {
url = "github:yaxitech/ragenix";
inputs.agenix.follows = "agenix";
inputs.flake-utils.follows = "flake-utils";
inputs.nixpkgs.follows = "nixpkgs";
};
agenix-rekey = {
url = "github:oddlama/agenix-rekey";
inputs.agenix.follows = "agenix";
inputs.flake-utils.follows = "flake-utils";
inputs.nixpkgs.follows = "nixpkgs";
};
@ -58,6 +48,7 @@
self,
nixpkgs,
flake-utils,
agenix-rekey,
...
} @ inputs:
{
@ -67,25 +58,27 @@
homeConfigurations = import ./nix/home-manager.nix inputs;
nixosConfigurations = import ./nix/nixos.nix inputs;
}
// flake-utils.lib.eachDefaultSystem (localSystem: rec {
checks = import ./nix/checks.nix inputs localSystem;
devShells.default = import ./nix/dev-shell.nix inputs localSystem;
// flake-utils.lib.eachDefaultSystem (system: rec {
checks = import ./nix/checks.nix inputs system;
devShells.default = import ./nix/dev-shell.nix inputs system;
packages = let
hostDrvs = import ./nix/host-drvs.nix inputs localSystem;
hostDrvs = import ./nix/host-drvs.nix inputs system;
default =
if builtins.hasAttr "${localSystem}" hostDrvs
then {default = self.packages.${localSystem}.${localSystem};}
if builtins.hasAttr "${system}" hostDrvs
then {default = self.packages.${system}.${system};}
else {};
in
hostDrvs // default;
pkgs = import nixpkgs {
inherit localSystem;
inherit system;
overlays = [
self.overlays.default
];
config.allowUnfree = true;
};
apps = agenix-rekey.defineApps inputs system;
});
}