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