mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-11-09 18:47:02 +00:00
merge server things into baseline
This commit is contained in:
parent
1e4e212c08
commit
b8c9fe888f
3 changed files with 12 additions and 15 deletions
|
@ -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;
|
||||
|
|
|
@ -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 ];
|
||||
}
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue