mirror of
https://codeberg.org/leana8959/.files.git
synced 2026-02-01 22:49:41 +00:00
30 lines
758 B
Nix
30 lines
758 B
Nix
{ config, ... }:
|
|
{
|
|
system.stateVersion = "24.11";
|
|
|
|
boot.loader = {
|
|
systemd-boot = {
|
|
enable = true;
|
|
editor = false;
|
|
};
|
|
efi.canTouchEfiVariables = true;
|
|
};
|
|
|
|
boot.kernelParams = [
|
|
# https://community.frame.work/t/stability-issues-random-crashes-reboots-and-boot-freezes/62675/4
|
|
"pcie_aspm=off"
|
|
];
|
|
|
|
# Cross building
|
|
# https://discourse.nixos.org/t/how-do-i-get-my-aarch64-linux-machine-to-build-x86-64-linux-extra-platforms-doesnt-seem-to-work/38106/2?u=leana8959
|
|
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
|
|
nix.settings.extra-platforms = config.boot.binfmt.emulatedSystems;
|
|
|
|
security.doas.extraRules = [
|
|
{
|
|
users = [ ":wheel" ];
|
|
cmd = "framework_tool";
|
|
noPass = true;
|
|
}
|
|
];
|
|
}
|