treewide: initial commit
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
{ config, lib, ... }:
|
||||
let
|
||||
cfg = config.host;
|
||||
inherit (lib) mkOption types;
|
||||
in
|
||||
{
|
||||
options.host = {
|
||||
name = mkOption { type = types.str; };
|
||||
};
|
||||
|
||||
config = {
|
||||
environment.variables.HOSTNAME = cfg.name;
|
||||
networking.hostName = cfg.name;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user