mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 15:00:13 +01:00
feat: adds system-wide variables
This commit is contained in:
parent
d52c3c9da2
commit
4fcf563b4b
1 changed files with 17 additions and 0 deletions
17
variables.nix
Normal file
17
variables.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkOption types;
|
||||
inherit (config.liv) variables;
|
||||
in {
|
||||
options.liv.variables = {
|
||||
primaryDomain = mkOption {
|
||||
default = "liv.town";
|
||||
type = types.str;
|
||||
readOnly = true;
|
||||
description = "My primary domain";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue