34 lines
705 B
Nix
34 lines
705 B
Nix
{ config, pkgs, options, ... }:
|
|
{
|
|
|
|
# Set kernel to latest
|
|
boot.kernelPackages = pkgs.linuxPackages;
|
|
|
|
##### nix extra options #######
|
|
|
|
nix = {
|
|
extraOptions = ''
|
|
experimental-features = nix-command flakes
|
|
keep-outputs = true
|
|
keep-derivations = true
|
|
'';
|
|
package = pkgs.nixFlakes;
|
|
gc = {
|
|
automatic = true;
|
|
dates = "weekly";
|
|
options = "--delete-older-than 7d";
|
|
persistent = true;
|
|
};
|
|
settings.auto-optimise-store = true;
|
|
};
|
|
|
|
#### extra network ####
|
|
networking.extraHosts =
|
|
''
|
|
10.1.40.11 netbox-100.intern.menzel-it.net
|
|
'';
|
|
#### NTP server ####
|
|
networking.timeServers = [ "time.home" ] ++ options.networking.timeServers.default;
|
|
|
|
}
|