nixos-build-all

This commit is contained in:
Grimmauld 2024-05-09 10:43:41 +02:00
parent 432824038e
commit 936659300b
Signed by: Grimmauld
GPG key ID: C2946668769F91FB
3 changed files with 22 additions and 5 deletions

View file

@ -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?

View file

@ -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;

View file

@ -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;