flake registry + merged outputs as jawz#

This commit is contained in:
Danilo Reyes 2025-09-24 00:03:24 -06:00
parent 606d8c675f
commit dd2b84f3f9
2 changed files with 15 additions and 7 deletions

View File

@ -1,4 +1,5 @@
{
self,
lib,
pkgs,
inputs,

View File

@ -48,7 +48,7 @@
};
outputs =
{ self, ... }@inputs:
{ self, jawz-scripts, ... }@inputs:
let
inherit (self) outputs;
system = "x86_64-linux";
@ -80,6 +80,12 @@
inputs.doom-emacs.overlays.default
];
}
{
nix.registry = {
jawz.flake = self;
unstable.flake = inputs.nixpkgs-unstable;
};
}
./hosts/${name}/configuration.nix
inputs.nur.modules.nixos.default
inputs.sops-nix.nixosModules.sops
@ -89,17 +95,18 @@
};
in
{
devShells.${system} = builtins.listToAttrs (
map (lang: {
name = lang;
value = self.nixosConfigurations.shell.config.devShells.${lang};
}) langList
);
nixosConfigurations = {
workstation = createConfig "workstation" inputs.nixpkgs;
miniserver = createConfig "miniserver" inputs.nixpkgs-small;
server = createConfig "server" inputs.nixpkgs-small;
shell = createConfig "shell" inputs.nixpkgs;
};
packages.${system} = (jawz-scripts.packages.${system} or { });
devShells.${system} = builtins.listToAttrs (
map (lang: {
name = lang;
value = self.nixosConfigurations.shell.config.devShells.${lang};
}) langList
);
};
}