merge server things into baseline

This commit is contained in:
Sean Buckley 2023-03-27 11:17:08 -04:00
parent 1e4e212c08
commit b8c9fe888f
3 changed files with 12 additions and 15 deletions

View file

@ -5,6 +5,9 @@
# the default is all languages. this just shrinks the install size
i18n.supportedLocales = [ "en_US.UTF-8/UTF-8" ];
# makes system evaluation much faster
documentation.nixos.enable = false;
boot = {
zfs.forceImportRoot = false;
initrd.availableKernelModules = [ "nvme" ]; # is this still needed?
@ -33,9 +36,16 @@
extraOptions = ''
experimental-features = nix-command flakes
'';
gc = {
automatic = true;
persistent = false;
randomizedDelaySec = "40min";
options = "--delete-older-than 30d";
};
};
services = {
logind.lidSwitch = "ignore";
openssh.enable = true;
xserver = {
libinput.mouse.middleEmulation = false;

View file

@ -2,7 +2,7 @@
with lib;
{
options.sconfig.profile = mkOption {
type = types.enum [ "server" "desktop" ];
type = types.enum [ "desktop" ];
};
imports = [ ./server.nix ./desktop.nix ];
imports = [ ./desktop.nix ];
}

View file

@ -1,13 +0,0 @@
{ config, pkgs, lib, ... }:
with lib;
{
config = mkIf (config.sconfig.profile == "server") {
services.logind.lidSwitch = "ignore";
documentation.nixos.enable = false;
nix.gc = {
automatic = true;
options = "--delete-older-than 30d";
randomizedDelaySec = "40min";
};
};
}