nix/hosts/Asahi/configuration.nix

52 lines
1.1 KiB
Nix

{
pkgs,
user,
...
}:
{
imports = [
./hardware-configuration.nix
../../nixos/gui.nix
];
hardware.asahi.enable = true;
hardware.asahi.peripheralFirmwareDirectory = pkgs.runCommand "vendorfw" { } ''
mkdir -p $out
ln -s ${
pkgs.requireFile {
name = "firmware.cpio";
hash = "sha256-mrqUGBzDVDABmDgwibjO5WMJSWow1OJKoCMHNQj9y5s=";
url = "file:///boot/vendorfw/firmware.cpio";
}
} $out/firmware.cpio
'';
hardware.bluetooth.enable = true;
hardware.bluetooth.powerOnBoot = true;
zramSwap.enable = true;
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = false;
networking.hostName = "Asahi";
networking.networkmanager.wifi.backend = "iwd";
programs = {
nh = {
enable = true;
flake = "/home/${user}/nix";
};
_1password.enable = true;
_1password-gui = {
enable = true;
polkitPolicyOwners = [ user ];
};
};
environment.systemPackages = with pkgs; [
brightnessctl
chromium
];
system.stateVersion = "26.11";
}