vm + cleanup

This commit is contained in:
Henri Dohmen 2026-02-06 20:06:09 +01:00
parent 53ecce03bd
commit 17b4945451
Signed by: hd
GPG key ID: AB79213B044674AE
5 changed files with 77 additions and 52 deletions

38
host/test-vm/default.nix Normal file
View file

@ -0,0 +1,38 @@
{ pkgs, ... }:
{
networking.hostName = "test-vm";
services.syncthing.enable = false;
hd.common.users.enable = false; # default user depends on age
users = {
mutableUsers = false;
users."hd" = {
description = "Henri";
isNormalUser = true;
createHome = true;
home = "/home/hd";
extraGroups = [ "wheel" ];
shell = pkgs.fish;
packages = [ ];
password = "";
};
users.root.hashedPassword = "!";
};
boot = {
loader = {
efi.canTouchEfiVariables = true;
grub = {
enable = true;
efiSupport = true;
device = "nodev";
};
};
kernelPackages = pkgs.linuxPackages_6_12;
initrd.systemd.network.wait-online.enable = false;
};
# ====== DON'T CHANGE ======
system.stateVersion = "24.11";
}