Files
nixos-setup/modules/skyg/core.nix
T
ari 66a876ee72 Moved home-manager work to a place
I can use with other linuxes
2024-08-09 21:54:40 -04:00

24 lines
401 B
Nix

{ config, lib, pkgs, ... }:
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;
};
}