{ config, lib, pkgs, inputs, ... }: let cfg = config.server; in { options.server = { enable = lib.mkEnableOption "server settings"; }; imports = [ ./host-user.nix ./mixins ]; config = lib.mkIf cfg.enable { _module.args.unstable = inputs.nixpkgs.legacyPackages.${pkgs.stdenv.hostPlatform.system}; boot.tmp.cleanOnBoot = lib.mkDefault true; documentation = { enable = false; man.enable = false; }; environment = { defaultPackages = lib.mkForce []; etc."nix/inputs/nixpkgs".source = inputs.nixpkgs-stable.outPath; }; nix = { gc = { dates = "*-*-1,5,9,13,17,21,25,29 00:00:00"; options = "-d --delete-older-than 2d"; }; registry.n.flake = inputs.nixpkgs-stable; settings.allowed-users = [config.networking.hostName]; }; }; }