pluto-flake/variables.nix
2026-02-20 23:07:13 +00:00

19 lines
453 B
Nix

{ lib, config, pkgs, ... }:
{
options.var = with lib.types; {
# host-specific options
username = lib.mkOption { type = str; };
hostname = lib.mkOption { type = str;};
#[...]
# Variables shared by all hosts
locale = lib.mkOption { type = str;};
timezone = lib.mkOption { type = str;};
#[...]
};
config.var = {
# Variables shared by all hosts
locale = "de_DE.UTF-8";
timezone = "Europe/Berlin";
};
}