Files
nixos-setup/modules/skyg/core.nix
T

24 lines
395 B
Nix

{ config, lib, ... }:
with lib;
let
cfg = config.skyg.core;
in
{
options = {
skyg.core = {
hostName = mkOption {
description = "Machine Hostname";
type = types.str;
};
};
};
config = {
users.users.root.shell = pkgs.zsh;
home-manager.users.root.programs.git.userEmail = "root@${cfg.hostName}";
networking.hostName = cfg.hostName;
};
}