flake registry + merged outputs as jawz#
This commit is contained in:
parent
606d8c675f
commit
dd2b84f3f9
@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
self,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
inputs,
|
inputs,
|
||||||
|
|||||||
21
flake.nix
21
flake.nix
@ -48,7 +48,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
outputs =
|
outputs =
|
||||||
{ self, ... }@inputs:
|
{ self, jawz-scripts, ... }@inputs:
|
||||||
let
|
let
|
||||||
inherit (self) outputs;
|
inherit (self) outputs;
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
@ -80,6 +80,12 @@
|
|||||||
inputs.doom-emacs.overlays.default
|
inputs.doom-emacs.overlays.default
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
nix.registry = {
|
||||||
|
jawz.flake = self;
|
||||||
|
unstable.flake = inputs.nixpkgs-unstable;
|
||||||
|
};
|
||||||
|
}
|
||||||
./hosts/${name}/configuration.nix
|
./hosts/${name}/configuration.nix
|
||||||
inputs.nur.modules.nixos.default
|
inputs.nur.modules.nixos.default
|
||||||
inputs.sops-nix.nixosModules.sops
|
inputs.sops-nix.nixosModules.sops
|
||||||
@ -89,17 +95,18 @@
|
|||||||
};
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
devShells.${system} = builtins.listToAttrs (
|
|
||||||
map (lang: {
|
|
||||||
name = lang;
|
|
||||||
value = self.nixosConfigurations.shell.config.devShells.${lang};
|
|
||||||
}) langList
|
|
||||||
);
|
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
workstation = createConfig "workstation" inputs.nixpkgs;
|
workstation = createConfig "workstation" inputs.nixpkgs;
|
||||||
miniserver = createConfig "miniserver" inputs.nixpkgs-small;
|
miniserver = createConfig "miniserver" inputs.nixpkgs-small;
|
||||||
server = createConfig "server" inputs.nixpkgs-small;
|
server = createConfig "server" inputs.nixpkgs-small;
|
||||||
shell = createConfig "shell" inputs.nixpkgs;
|
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
|
||||||
|
);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user