Compare commits

..

2 commits

Author SHA1 Message Date
Nicolas Jeannerod 5caad04862
Some convenience options for ISO images 2024-09-30 12:35:10 +02:00
Taeer Bar-Yam 54bf518928
integrate valentin's changes 2024-09-30 12:35:08 +02:00
4 changed files with 9 additions and 19 deletions

View file

@ -97,9 +97,11 @@
};
};
## Fully-feature ISO installer
mkInstaller = import ./installer.nix;
installers = lib.mapAttrs (_: config: self.mkInstaller nixpkgs config) self.nixosConfigurations;
installers =
let
installer = (import ./installer.nix) nixpkgs;
in
lib.mapAttrs (_: config: installer config) self.nixosConfigurations;
deploy =
let

View file

@ -28,10 +28,8 @@ nixpkgs: machine:
isoImage = {
compressImage = false;
squashfsCompression = "lz4";
squashfsCompression = "gzip -Xcompression-level 1";
isoName = lib.mkForce "installer.iso";
## ^^ FIXME: Use a more interesting name or keep the default name and
## use `isoImage.isoName` in the tests.
};
};
in

View file

@ -37,12 +37,7 @@ pkgs.nixosTest {
nodes = {
server = { config, ... }: {
virtualisation.memorySize = lib.mkVMOverride 4096;
imports = with self.nixosModules; [
bleedingFediverse
fediversity
garage-vm
mastodon-vm
];
imports = with self.nixosModules; [ bleedingFediverse garage-vm mastodon-vm ];
# TODO: pair down
environment.systemPackages = with pkgs; [
python3

View file

@ -136,12 +136,7 @@ pkgs.nixosTest {
memorySize = lib.mkVMOverride 8192;
cores = 8;
};
imports = with self.nixosModules; [
bleedingFediverse
fediversity
garage-vm
pixelfed-vm
];
imports = with self.nixosModules; [ bleedingFediverse garage-vm pixelfed-vm ];
# TODO: pair down
environment.systemPackages = with pkgs; [
python3