48 lines
1 KiB
Nix
48 lines
1 KiB
Nix
# Edit this configuration file to define what should be installed on
|
|
# your system. Help is available in the configuration.nix(5) man page, on
|
|
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
|
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
|
|
imports = [
|
|
./hardware-configuration.nix
|
|
../shared.nix
|
|
];
|
|
|
|
# Use the systemd-boot EFI boot loader.
|
|
boot.loader = {
|
|
systemd-boot.enable = true;
|
|
efi.canTouchEfiVariables = false;
|
|
};
|
|
|
|
# Asahi Linux support
|
|
hardware.asahi = {
|
|
peripheralFirmwareDirectory = /boot/asahi;
|
|
# GPU enablement
|
|
useExperimentalGPUDriver = true;
|
|
experimentalGPUInstallMode = "replace";
|
|
withRust = true;
|
|
};
|
|
|
|
networking = {
|
|
hostName = "spotlights-macbook-air";
|
|
wireless.iwd = {
|
|
enable = true;
|
|
settings.General.EnableNetworkConfiguration = true;
|
|
};
|
|
};
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
legcord
|
|
vscode
|
|
];
|
|
|
|
# :(
|
|
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
|
|
"vscode"
|
|
];
|
|
|
|
system.stateVersion = "24.05";
|
|
}
|