forked from Fediversity/Fediversity
picked up from https://git.fediversity.eu/Fediversity/Fediversity/compare/main...niols:forgejo-ci. closes #356. Co-authored-by: Nicolas “Niols” Jeannerod <nicolas.jeannerod@moduscreate.com> Reviewed-on: Fediversity/Fediversity#389 Reviewed-by: Nicolas Jeannerod <nicolas.jeannerod@moduscreate.com> Co-authored-by: Kiara Grouwstra <kiara@procolix.eu> Co-committed-by: Kiara Grouwstra <kiara@procolix.eu>
31 lines
660 B
Nix
31 lines
660 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";
|
|
|
|
## 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;
|
|
};
|
|
}
|