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

@ -44,7 +44,7 @@
nixosConfigurations = { nixosConfigurations = {
mastodon = nixpkgs.lib.nixosSystem { mastodon = nixpkgs.lib.nixosSystem {
inherit system; inherit system;
modules = with self.nixosModules; [ modules = with self.nixosModules; [
disko.nixosModules.default disko.nixosModules.default
disk-layout disk-layout
bleedingFediverse bleedingFediverse
@ -97,9 +97,11 @@
}; };
}; };
## Fully-feature ISO installer installers =
mkInstaller = import ./installer.nix; let
installers = lib.mapAttrs (_: config: self.mkInstaller nixpkgs config) self.nixosConfigurations; installer = (import ./installer.nix) nixpkgs;
in
lib.mapAttrs (_: config: installer config) self.nixosConfigurations;
deploy = deploy =
let let

View file

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

View file

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

View file

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