Compare commits
No commits in common. "0a3891ad4f551f9525ddbc572474c66012b08270" and "8e4fbd6f544b025594cbaa6f30bc621d20491a63" have entirely different histories.
0a3891ad4f
...
8e4fbd6f54
2 changed files with 4 additions and 53 deletions
|
@ -92,9 +92,6 @@
|
||||||
|
|
||||||
# Common utilities across most Linux installs.
|
# Common utilities across most Linux installs.
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
# Since not all applications are currently GTK 4,
|
|
||||||
# we need to manually add the Adwaita GTK 3 dark mode theme.
|
|
||||||
adw-gtk3
|
|
||||||
firefox
|
firefox
|
||||||
htop
|
htop
|
||||||
git
|
git
|
||||||
|
|
|
@ -12,12 +12,10 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
# Use the systemd-boot EFI boot loader.
|
# Use the systemd-boot EFI boot loader.
|
||||||
boot.loader = {
|
boot.loader.systemd-boot.enable = true;
|
||||||
systemd-boot.enable = true;
|
boot.loader.efi.canTouchEfiVariables = false;
|
||||||
efi.canTouchEfiVariables = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
# Asahi Linux support
|
# GPU enablement
|
||||||
hardware.asahi = {
|
hardware.asahi = {
|
||||||
peripheralFirmwareDirectory = /boot/asahi;
|
peripheralFirmwareDirectory = /boot/asahi;
|
||||||
# GPU enablement
|
# GPU enablement
|
||||||
|
@ -27,55 +25,11 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
hostName = "spotlights-macbook-air";
|
|
||||||
wireless.iwd = {
|
wireless.iwd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings.General.EnableNetworkConfiguration = true;
|
settings.General.EnableNetworkConfiguration = true;
|
||||||
};
|
};
|
||||||
};
|
networkmanager.enable = true;
|
||||||
|
|
||||||
nixpkgs.overlays = [
|
|
||||||
# We need SMBIOS generation enabled for libvirtd,
|
|
||||||
# as it otherwise stumbles over executing dmidecode.
|
|
||||||
(final: prev: {
|
|
||||||
uboot-asahi = prev.uboot-asahi.overrideAttrs (old: {
|
|
||||||
# TODO(spotlightishere): It'd be far more ideal to actually override.
|
|
||||||
# However, somehow overriding extraConfig seems to coerce things into a string.
|
|
||||||
# We wholly override it here, and thus should monitor to see if it changes upstream.
|
|
||||||
extraConfig = ''
|
|
||||||
# Upstream
|
|
||||||
CONFIG_IDENT_STRING=" ${old.version}"
|
|
||||||
CONFIG_VIDEO_FONT_4X6=n
|
|
||||||
CONFIG_VIDEO_FONT_8X16=n
|
|
||||||
CONFIG_VIDEO_FONT_SUN12X22=n
|
|
||||||
CONFIG_VIDEO_FONT_16X32=y
|
|
||||||
CONFIG_CMD_BOOTMENU=y
|
|
||||||
|
|
||||||
# Custom modifications
|
|
||||||
CONFIG_SMBIOS=y
|
|
||||||
CONFIG_GENERATE_SMBIOS_TABLE=y
|
|
||||||
'';
|
|
||||||
});
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
# As recommended in https://nixos.wiki/wiki/Libvirt#Setup
|
|
||||||
virtualisation.libvirtd = {
|
|
||||||
enable = true;
|
|
||||||
qemu = {
|
|
||||||
package = pkgs.qemu_kvm;
|
|
||||||
runAsRoot = true;
|
|
||||||
swtpm.enable = true;
|
|
||||||
ovmf = {
|
|
||||||
enable = true;
|
|
||||||
packages = [
|
|
||||||
(pkgs.OVMF.override {
|
|
||||||
secureBoot = true;
|
|
||||||
tpmSupport = true;
|
|
||||||
}).fd
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue