2022-02-28 20:50:25 +01:00
|
|
|
{ inputs, hostname, ip, ... }:
|
2022-01-01 15:21:51 +01:00
|
|
|
{
|
2022-01-15 15:32:27 +01:00
|
|
|
imports = [
|
2022-02-16 22:19:13 +01:00
|
|
|
(import "${inputs.self}/modules/mk-network" { inherit hostname ip; })
|
2022-01-15 15:32:27 +01:00
|
|
|
];
|
2022-01-01 15:21:51 +01:00
|
|
|
boot.initrd.availableKernelModules = [
|
|
|
|
"ata_piix"
|
|
|
|
"uhci_hcd"
|
|
|
|
"virtio_pci"
|
|
|
|
"virtio_scsi"
|
|
|
|
"sd_mod"
|
|
|
|
"sr_mod"
|
|
|
|
];
|
|
|
|
boot.initrd.kernelModules = [ ];
|
|
|
|
boot.kernelModules = [ "dm-snapshot" ];
|
|
|
|
boot.extraModulePackages = [ ];
|
|
|
|
|
|
|
|
fileSystems."/" = {
|
|
|
|
device = "/dev/disk/by-label/nixos";
|
|
|
|
fsType = "ext4";
|
|
|
|
};
|
|
|
|
fileSystems."/boot" = {
|
|
|
|
device = "/dev/disk/by-label/BOOT";
|
|
|
|
fsType = "vfat";
|
|
|
|
};
|
2022-01-10 21:00:25 +01:00
|
|
|
|
2022-01-01 15:21:51 +01:00
|
|
|
swapDevices = [
|
|
|
|
{ device = "/dev/disk/by-label/swap"; }
|
|
|
|
];
|
2022-02-28 20:50:25 +01:00
|
|
|
|
|
|
|
# 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;
|
2022-01-01 15:21:51 +01:00
|
|
|
}
|
2022-01-10 21:00:25 +01:00
|
|
|
|