Fediversity/infra/common/nixos/default.nix
Kiara Grouwstra f8668a5438 default nix.gc.automatic to true (#563)
automates future gc invocations to prevent errors as the `No space left on device` from https://git.fediversity.eu/fediversity/fediversity/actions/runs/1557

Reviewed-on: fediversity/fediversity#563
2025-10-31 13:43:50 +01:00

32 lines
697 B
Nix

{ lib, ... }:
let
inherit (lib) mkDefault;
in
{
_class = "nixos";
imports = [
./networking.nix
./users.nix
];
time.timeZone = "Europe/Amsterdam";
i18n.defaultLocale = "en_US.UTF-8";
system.stateVersion = "24.05"; # do not change
nixpkgs.hostPlatform = mkDefault "x86_64-linux";
nix.gc.automatic = mkDefault true;
## This is just nice to have, but it is also particularly important for the
## Forgejo CI runners because the Nix configuration in the actions is directly
## taken from here.
nix.extraOptions = ''
experimental-features = nix-command flakes
'';
boot.loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
}