forked from security/hakurei
Turns out this did not work because in the vm test harness, virtualisation.fileSystems completely and silently overrides fileSystems, causing its contents to not even be evaluated anymore. This is not documented as far as I can tell, and is not obvious by any stretch of the imagination. The current hack is cargo culted from nix-community/impermanence and hopefully lasts until this project fully replaces nix. Signed-off-by: Ophestra <cat@gensokyo.uk>
42 lines
767 B
Nix
42 lines
767 B
Nix
{ pkgs, ... }:
|
|
{
|
|
users.users = {
|
|
alice = {
|
|
isNormalUser = true;
|
|
description = "Alice Foobar";
|
|
password = "foobar";
|
|
uid = 1000;
|
|
};
|
|
};
|
|
|
|
home-manager.users.alice.home.stateVersion = "24.11";
|
|
|
|
# Automatically login on tty1 as a normal user:
|
|
services.getty.autologinUser = "alice";
|
|
|
|
environment = {
|
|
# For benchmarking sharefs:
|
|
systemPackages = [ pkgs.fsmark ];
|
|
};
|
|
|
|
virtualisation = {
|
|
diskSize = 6 * 1024;
|
|
|
|
qemu.options = [
|
|
# Increase test performance:
|
|
"-smp 8"
|
|
];
|
|
};
|
|
|
|
environment.hakurei = rec {
|
|
enable = true;
|
|
stateDir = "/var/lib/hakurei";
|
|
sharefs.source = "${stateDir}/sdcard";
|
|
users.alice = 0;
|
|
|
|
extraHomeConfig = {
|
|
home.stateVersion = "23.05";
|
|
};
|
|
};
|
|
}
|