add a minimal module for VMs

This commit is contained in:
Andreas Zweili 2022-01-26 21:00:21 +01:00
parent 61f4e1713f
commit 537a90dffc
2 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,9 @@
{ ... }:
{
# Inspired by
# https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/profiles/minimal.nix
environment.noXlibs = true;
documentation.enable = false;
documentation.nixos.enable = false;
programs.command-not-found.enable = false;
}

View File

@ -2,6 +2,7 @@
{
imports = [
(import "${self}/modules/mk-network" { inherit hostname ip; })
(import "${self}/systems/minimal")
];
boot.initrd.availableKernelModules = [
"ata_piix"