added core config
This commit is contained in:
1 parent
dbc538f5d7
commit
a81a8ac57b
4 files changed
+52
No files matched your search
@@ -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;
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{ ... }:
|
||||
{
|
||||
imports = [
|
||||
./core.nix
|
||||
];
|
||||
}
|
||||
Reference in new issue
Block a user