nixos-config/hosts/mashu.nix

49 lines
1.1 KiB
Nix
Raw Normal View History

2021-09-04 11:49:33 +00:00
{ 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"
2021-09-04 18:16:58 +00:00
"wifi"
"mobile"
"surface-pro6"
2021-09-04 11:49:33 +00:00
];
programImports = [
"zsh" "git" "mpv" "tmux" "firefox" "gnome-terminal" "gnome" "i18n"
2021-09-04 18:16:58 +00:00
"distributed-build/offload.nix"
2021-09-04 11:49:33 +00:00
];
fileSystems = {
"/" = {
2021-09-04 18:16:58 +00:00
device = "/dev/disk/by-label/root";
2021-09-04 11:49:33 +00:00
fsType = "btrfs";
};
"/boot" = {
2021-09-04 18:16:58 +00:00
device = "/dev/disk/by-label/boot";
2021-09-04 11:49:33 +00:00
fsType = "vfat";
2021-09-04 18:16:58 +00:00
};
2021-09-04 11:49:33 +00:00
};
swapDevices = [
2021-09-04 18:16:58 +00:00
{
device = "/dev/disk/by-label/swap";
}
2021-09-04 11:49:33 +00:00
];
extraOptions = old: {
2021-09-04 18:16:58 +00:00
networking.wireless.enable = true;
2021-09-04 11:49:33 +00:00
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" ];
};
};
};
}