Update k0 to new-style nix modules

This commit is contained in:
Jonas Juselius
2021-01-09 13:19:45 +01:00
parent 58dd6e717a
commit ffb2021c85
14 changed files with 112 additions and 41 deletions

27
clusters/k0/hw/k0-2.nix Normal file
View File

@@ -0,0 +1,27 @@
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:
{
imports = [ ];
boot.initrd.availableKernelModules = [ "sd_mod" "sr_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/bf2f7548-1a5d-4b02-a684-f666e3563eaf";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/2A74-A44E";
fsType = "vfat";
};
swapDevices = [ ];
virtualisation.hypervGuest.enable = true;
}