parent
5ad1f4e497
commit
672b7c1a14
3 changed files with 63 additions and 9 deletions
39
flake.nix
39
flake.nix
|
|
@ -70,6 +70,15 @@
|
|||
);
|
||||
overlays = [
|
||||
self.overlays.default
|
||||
(final: prev: {
|
||||
inherit (final.unstable.lixPackageSets.latest)
|
||||
nixpkgs-review
|
||||
nix-direnv
|
||||
nix-eval-jobs
|
||||
nix-fast-build
|
||||
colmena
|
||||
;
|
||||
})
|
||||
];
|
||||
genPkgs =
|
||||
system:
|
||||
|
|
@ -110,13 +119,33 @@
|
|||
pkgs.nixfmt-rfc-style
|
||||
pkgs.nil
|
||||
pkgs.sops
|
||||
(pkgs.runCommand "nix-config-bin" {} ''
|
||||
mkdir -p $out/bin
|
||||
cp ${./bin}/* $out/bin
|
||||
'')
|
||||
(pkgs.runCommand "nix-config-bin" { } ''
|
||||
mkdir -p $out/bin
|
||||
cp ${./bin}/* $out/bin
|
||||
'')
|
||||
];
|
||||
SOPS_CONFIG = (pkgs.callPackage ./sops.nix { instanceConfigs = lib.xyno.getDirs ./instances; });
|
||||
|
||||
|
||||
};
|
||||
hydraJobs.systems = lib.foldl' lib.recursiveUpdate { } [
|
||||
(builtins.mapAttrs (
|
||||
host: config:
|
||||
lib.foldl' lib.recursiveUpdate { } ([
|
||||
{
|
||||
inherit (config.config.system.build) initialRamdisk;
|
||||
kernel = config.config.boot.kernelPackages.kernel;
|
||||
}
|
||||
])
|
||||
) self.nixosConfigurations)
|
||||
];
|
||||
|
||||
packages."x86_64-linux" =
|
||||
let
|
||||
pkgs = genPkgs "x86_64-linux";
|
||||
in
|
||||
{
|
||||
nix = pkgs.unstable.lixPackageSets.latest.lix;
|
||||
nix-fast-build = pkgs.nix-fast-build;
|
||||
};
|
||||
checks."x86_64-linux"."nixos" =
|
||||
let
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue