mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +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
|
# the default is all languages. this just shrinks the install size
|
||||||
i18n.supportedLocales = [ "en_US.UTF-8/UTF-8" ];
|
i18n.supportedLocales = [ "en_US.UTF-8/UTF-8" ];
|
||||||
|
|
||||||
|
# makes system evaluation much faster
|
||||||
|
documentation.nixos.enable = false;
|
||||||
|
|
||||||
boot = {
|
boot = {
|
||||||
zfs.forceImportRoot = false;
|
zfs.forceImportRoot = false;
|
||||||
initrd.availableKernelModules = [ "nvme" ]; # is this still needed?
|
initrd.availableKernelModules = [ "nvme" ]; # is this still needed?
|
||||||
|
@ -33,9 +36,16 @@
|
||||||
extraOptions = ''
|
extraOptions = ''
|
||||||
experimental-features = nix-command flakes
|
experimental-features = nix-command flakes
|
||||||
'';
|
'';
|
||||||
|
gc = {
|
||||||
|
automatic = true;
|
||||||
|
persistent = false;
|
||||||
|
randomizedDelaySec = "40min";
|
||||||
|
options = "--delete-older-than 30d";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
|
logind.lidSwitch = "ignore";
|
||||||
openssh.enable = true;
|
openssh.enable = true;
|
||||||
xserver = {
|
xserver = {
|
||||||
libinput.mouse.middleEmulation = false;
|
libinput.mouse.middleEmulation = false;
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
with lib;
|
with lib;
|
||||||
{
|
{
|
||||||
options.sconfig.profile = mkOption {
|
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