19 lines
282 B
Nix
19 lines
282 B
Nix
|
{ config, lib, pkgs, ... }:
|
||
|
|
||
|
let
|
||
|
inherit (lib) mkOption types;
|
||
|
cfg = config.beatific;
|
||
|
in {
|
||
|
options = {
|
||
|
beatific.hostName = mkOption {
|
||
|
type = types.str;
|
||
|
description = "Hostname";
|
||
|
};
|
||
|
};
|
||
|
|
||
|
config = let
|
||
|
in {
|
||
|
networking.hostName = cfg.hostName;
|
||
|
};
|
||
|
}
|