first commit
This commit is contained in:
commit
00add66a97
8 changed files with 391 additions and 0 deletions
19
variables.nix
Normal file
19
variables.nix
Normal 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";
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue