Compare commits
2 commits
main
...
valentin-r
Author | SHA1 | Date | |
---|---|---|---|
Nicolas Jeannerod | 5caad04862 | ||
54bf518928 |
10
flake.nix
10
flake.nix
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue