first commit

This commit is contained in:
alyx 2026-02-20 23:07:13 +00:00
commit 00add66a97
No known key found for this signature in database
8 changed files with 391 additions and 0 deletions

19
variables.nix Normal file
View file

@ -0,0 +1,19 @@
{ 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";
};
}