added core config

This commit is contained in:
ari committed 2024-08-09 12:32:30 -04:00
1 parent dbc538f5d7
commit a81a8ac57b
4 files changed
+52

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
{ config, lib, ... }:
with lib;
let
cfg = config.skyg.core;
in
{
options = {
skyg.core = {
hostname = mkOption {
description = "Machine Hostname";
type = types.str;
};
};
};
config = {
home-manager.users.root.programs.git.userName = "root@${cfg.hostName}";
networking.hostName = cfg.hostName;
};
}
+6
View File
@@ -0,0 +1,6 @@
{ ... }:
{
imports = [
./core.nix
];
}