mashu: Add new host

This commit is contained in:
PapaTutuWawa 2021-09-04 13:49:33 +02:00
parent 6d301e3aa7
commit 3ba2dde3d3

42
hosts/mashu.nix Normal file
View File

@ -0,0 +1,42 @@
{ config, lib, pkgs, ... }:
let
mkHost = (import ../modules { lib = lib; pkgs = pkgs; }).mkHost;
in mkHost config {
userName = "alexander";
hostName = "mashu";
overlays = [ "nur" "unstable" "simple" "custom" ];
hardwareImports = [
"intel"
#"surface-pro6"
];
programImports = [
"zsh" "git" "mpv" "tmux" "firefox" "gnome-terminal" "gnome" "i18n"
];
fileSystems = {
"/" = {
device = "/dev/nvme0n1p1";
fsType = "btrfs";
};
"/boot" = {
device = "/dev/nvme0n1p3";
fsType = "vfat";
}
};
swapDevices = [
# TODO
];
extraOptions = old: {
hardware.video.hidpi.enable = true;
boot = {
extraModprobeConfig = ''
options kvm_amd nested=1
options vfio-pci ids=1002:67df,1002:aaf0
'';
initrd = {
availableKernelModules = [ "xhci_pci" "nvme" "usbhid" ];
kernelModules = [ "kvm-intel" ];
};
};
};
}