Add initial installer
This commit is contained in:
22
nixos/modules/server.nix
Normal file
22
nixos/modules/server.nix
Normal file
@@ -0,0 +1,22 @@
|
||||
{ config, lib, ... }:
|
||||
let
|
||||
inherit (lib) mkIf;
|
||||
inherit (lib.my) mkBoolOpt';
|
||||
|
||||
cfg = config.my.server;
|
||||
in
|
||||
{
|
||||
options.my.server.enable = mkBoolOpt' false "Whether to enable common configuration for servers.";
|
||||
config = mkIf cfg.enable {
|
||||
services = {
|
||||
getty.autologinUser = config.my.user.name;
|
||||
kmscon.autologinUser = config.my.user.name;
|
||||
};
|
||||
|
||||
my.homeConfig = {
|
||||
my.gui.enable = false;
|
||||
};
|
||||
};
|
||||
|
||||
meta.buildDocsInSandbox = false;
|
||||
}
|
Reference in New Issue
Block a user