refactor(nixos:host): move module options -> nixos/options/host.nix

This commit is contained in:
ooks-io 2024-06-10 13:23:53 +12:00
parent 20466f95b2
commit 1ac90d7985
11 changed files with 137 additions and 199 deletions

View file

@ -1,19 +1,10 @@
{ lib, config, ... }:
{ config, ... }:
let
inherit (lib) types mkOption;
cfg = config.ooknet.host;
in
{
options.ooknet.host = {
name = mkOption {
type = types.str;
default = "ooksgeneric";
description = "Name of host machine";
};
};
config = {
networking.hostName = cfg.name;
environment.sessionVariables.HN = cfg.name;