nix/nixos/common/modules/nixos.nix

42 lines
1 KiB
Nix
Raw Normal View History

2024-05-01 04:11:13 +02:00
{ pkgs, system, stateVersion, ... }: {
2024-04-17 04:25:49 +02:00
nix = {
settings = {
2024-04-25 08:53:37 +02:00
auto-optimise-store = true;
2024-04-17 04:25:49 +02:00
experimental-features = [ "nix-command" "flakes" ];
};
optimise = {
automatic = true;
dates = [ "daily" ];
};
gc = {
automatic = true;
dates = "daily";
options = "--delete-older-than 30d";
};
};
2024-05-01 04:11:13 +02:00
# Select internationalisation properties.
i18n.defaultLocale = "en_US.UTF-8";
i18n.extraLocaleSettings = {
LC_ADDRESS = "en_US.UTF-8";
LC_IDENTIFICATION = "en_US.UTF-8";
LC_MEASUREMENT = "en_US.UTF-8";
LC_MONETARY = "en_US.UTF-8";
LC_NAME = "en_US.UTF-8";
LC_NUMERIC = "en_US.UTF-8";
LC_PAPER = "en_US.UTF-8";
LC_TELEPHONE = "en_US.UTF-8";
LC_TIME = "en_US.UTF-8";
};
# https://github.com/NixOS/nixpkgs/issues/180175#issuecomment-1658731959
systemd.services.NetworkManager-wait-online = {
serviceConfig = {
ExecStart = [ "" "${pkgs.networkmanager}/bin/nm-online -q" ];
};
};
system.stateVersion = stateVersion;
nixpkgs.hostPlatform = system;
2024-02-21 03:00:07 +01:00
}