nixos-build-all
This commit is contained in:
parent
432824038e
commit
936659300b
3 changed files with 22 additions and 5 deletions
|
@ -1,4 +1,9 @@
|
||||||
{ config, pkgs, ... }:
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./overlays
|
./overlays
|
||||||
|
@ -10,6 +15,7 @@
|
||||||
# Bootloader.
|
# Bootloader.
|
||||||
boot = {
|
boot = {
|
||||||
loader.efi.canTouchEfiVariables = true;
|
loader.efi.canTouchEfiVariables = true;
|
||||||
|
kernelPackages = lib.mkDefault pkgs.linuxPackages_zen;
|
||||||
};
|
};
|
||||||
|
|
||||||
services.logrotate.checkConfig = false; # fixme: actually needed?
|
services.logrotate.checkConfig = false; # fixme: actually needed?
|
||||||
|
|
|
@ -71,6 +71,21 @@ in
|
||||||
distro = "${distroName} ${version} (${codeName}) ${system}";
|
distro = "${distroName} ${version} (${codeName}) ${system}";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
environment.systemPackages =
|
||||||
|
with pkgs;
|
||||||
|
with lib;
|
||||||
|
[
|
||||||
|
(writeShellScriptBin "nixos-build-all" (
|
||||||
|
concatLines (
|
||||||
|
map (
|
||||||
|
n:
|
||||||
|
"NIXOS_TARGET_HOST=${n} nixos-rebuild build --upgrade --show-trace"
|
||||||
|
+ optionalString (elem nix-output-monitor config.environment.systemPackages) " |& ${lib.getExe pkgs.nix-output-monitor}"
|
||||||
|
) (attrNames host_modules)
|
||||||
|
)
|
||||||
|
))
|
||||||
|
];
|
||||||
|
|
||||||
nixpkgs.pkgs =
|
nixpkgs.pkgs =
|
||||||
let
|
let
|
||||||
src = nivSources.nixpkgs;
|
src = nivSources.nixpkgs;
|
||||||
|
|
|
@ -9,10 +9,6 @@
|
||||||
|
|
||||||
age.identityPaths = [ "/home/grimmauld/.ssh/id_ed25519" ];
|
age.identityPaths = [ "/home/grimmauld/.ssh/id_ed25519" ];
|
||||||
|
|
||||||
boot = {
|
|
||||||
kernelPackages = pkgs.linuxPackages_zen;
|
|
||||||
};
|
|
||||||
|
|
||||||
grimmShared = {
|
grimmShared = {
|
||||||
tooling = {
|
tooling = {
|
||||||
pass = true;
|
pass = true;
|
||||||
|
|
Loading…
Reference in a new issue