nix/system/hosts/peach/default.nix
2025-12-24 10:38:14 -05:00

46 lines
918 B
Nix

{
config,
pkgs,
lib,
catppuccin,
...
}:
{
networking.hostName = "peach";
boot.binfmt.emulatedSystems = [
"x86_64-linux"
"riscv64-linux"
];
boot.kernelParams = [ "apple_dcp.show_notch=1" ];
catppuccin.accent = "peach";
home-manager.users.sckova = {
imports = [ catppuccin.homeModules.catppuccin ];
};
hardware.asahi = {
enable = true;
setupAsahiSound = true;
# https://github.com/nix-community/nixos-apple-silicon/issues/299#issuecomment-2901508921
peripheralFirmwareDirectory = pkgs.requireFile {
name = "firmware";
hashMode = "recursive";
hash = "sha256-lw8tJHRUSBwqu82ys4rZIYH0sEb+dDjQkXg1wt1afZI=";
message = ''
nix-store --add-fixed sha256 --recursive ./firmware
'';
};
};
swapDevices = [
{
device = "/swapfile";
size = 16000; # 16GB
}
];
security.sudo.wheelNeedsPassword = false;
}