forked from Fediversity/Fediversity
34 lines
849 B
Nix
34 lines
849 B
Nix
{ lib, pkgs, ... }:
|
|
|
|
let
|
|
inherit (lib) mkDefault;
|
|
nixPath = "/run/current-system/nixpkgs";
|
|
in
|
|
{
|
|
imports = [
|
|
./hardware.nix
|
|
./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";
|
|
|
|
# use flake's nixpkgs over channels
|
|
nix.nixPath = [ "nixpkgs=${nixPath}" ];
|
|
system.extraSystemBuilderCmds = ''
|
|
ln -sv ${pkgs.path} $out/nixpkgs
|
|
'';
|
|
systemd.tmpfiles.rules = [
|
|
"L+ ${nixPath} - - - - ${pkgs.path}"
|
|
];
|
|
|
|
## 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
|
|
'';
|
|
}
|