2021-08-31 16:01:29 +00:00
|
|
|
{ config, pkgs, lib, ... }:
|
2021-07-29 20:21:51 +00:00
|
|
|
|
2021-08-31 16:01:29 +00:00
|
|
|
let
|
2021-09-01 14:37:36 +00:00
|
|
|
mkHost = (import ../modules { lib = lib; pkgs = pkgs; }).mkHost;
|
|
|
|
in mkHost config {
|
2021-08-31 16:01:29 +00:00
|
|
|
userName = "alexander";
|
|
|
|
hostName = "ayame";
|
|
|
|
wireless = true;
|
|
|
|
overlays = [ "nur" "unstable" ];
|
|
|
|
hardwareImports = [ "intel" "wifi" "mobile" ];
|
|
|
|
programImports = [
|
2021-08-31 16:25:24 +00:00
|
|
|
"zsh" "mpv" "git" "tmux" "firefox" "gnome-terminal" "gnome"
|
2021-07-29 20:21:51 +00:00
|
|
|
];
|
2021-08-31 16:01:29 +00:00
|
|
|
extraImports = [ "distributed-build/offload.nix" ];
|
|
|
|
extraPackages = pkgs: with pkgs; [
|
|
|
|
unstable.firmwareLinuxNonFree unstable.sof-firmware
|
2021-07-29 20:21:51 +00:00
|
|
|
];
|
|
|
|
fileSystems = {
|
|
|
|
"/" = {
|
|
|
|
device = "/dev/disk/by-label/root";
|
|
|
|
fsType = "btrfs";
|
|
|
|
};
|
|
|
|
"/boot" = {
|
|
|
|
device = "/dev/disk/by-label/boot";
|
|
|
|
fsType = "vfat";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
swapDevices = [
|
2021-07-30 08:29:14 +00:00
|
|
|
{ device = "/dev/disk/by-uuid/cf3b1e1c-c245-4452-ad49-68ac72369e77"; }
|
2021-07-29 20:21:51 +00:00
|
|
|
];
|
2021-08-31 16:01:29 +00:00
|
|
|
extraOptions = old: {
|
|
|
|
boot = {
|
|
|
|
loader = {
|
|
|
|
systemd-boot.enable = false;
|
|
|
|
efi.canTouchEfiVariables = false;
|
|
|
|
grub = {
|
|
|
|
enable = true;
|
|
|
|
efiInstallAsRemovable = true;
|
|
|
|
device = "nodev";
|
|
|
|
efiSupport = true;
|
|
|
|
# The UEFI is pretty wonky
|
|
|
|
forcei686 = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
extraModprobeConfig = "";
|
|
|
|
initrd = {
|
|
|
|
availableKernelModules = [ "xhci_pci" "usbhid" "usb_storage" "sd_mod" "sdhci_acpi" ];
|
|
|
|
kernelModules = [
|
|
|
|
"kvm-intel" "i915"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
# This spams the console and takes up so much CPU time
|
|
|
|
kernelParams = [ "modprobe.blacklist=arizona_spi" ];
|
|
|
|
kernelModules = [];
|
|
|
|
extraModulePackages = [];
|
|
|
|
kernelPackages = pkgs.linuxPackages_zen;
|
|
|
|
};
|
|
|
|
|
|
|
|
/*systemd.services = {
|
|
|
|
rfkill-workaround = {
|
|
|
|
enable = true;
|
|
|
|
description = "Work around rfkill having the Wifi blocked at boot";
|
|
|
|
before = [ "network.target" ];
|
|
|
|
wantedBy = [ "multi-user.target" ];
|
|
|
|
serviceConfig = {
|
|
|
|
Type = "oneshot";
|
|
|
|
ExecStart = "rfkill unblock all";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};*/
|
|
|
|
};
|
2021-07-29 20:21:51 +00:00
|
|
|
}
|