{pkgs, ...}: { nixpkgs.config = { allowUnfree = true; }; nix = { optimise.automatic = if pkgs.stdenv.hostPlatform.system == "aarch64-darwin" then true else false; settings = { auto-optimise-store = if pkgs.stdenv.hostPlatform.system == "x86_64-linux" then true else false; trusted-users = ["root" "relms"]; }; extraOptions = '' experimental-features = nix-command flakes ''; }; system.stateVersion = if pkgs.stdenv.isLinux then "24.11" else 5; }