nixfiles/nixos/modules/server.nix

23 lines
466 B
Nix
Raw Normal View History

2022-02-06 00:06:26 +00:00
{ config, lib, ... }:
2022-02-13 13:10:21 +00:00
let
inherit (lib) mkIf;
2022-02-13 17:44:14 +00:00
inherit (lib.my) mkBoolOpt';
cfg = config.my.server;
2022-02-13 13:10:21 +00:00
in
{
2022-02-13 17:44:14 +00:00
options.my.server.enable = mkBoolOpt' false "Whether to enable common configuration for servers.";
config = mkIf cfg.enable {
2022-02-16 01:38:17 +00:00
services = {
getty.autologinUser = config.my.user.name;
kmscon.autologinUser = config.my.user.name;
};
my.homeConfig = {
my.gui.enable = false;
};
2022-02-13 13:10:21 +00:00
};
meta.buildDocsInSandbox = false;
2022-02-13 13:10:21 +00:00
}