aboutsummaryrefslogtreecommitdiff
path: root/common/variables.nix
diff options
context:
space:
mode:
Diffstat (limited to 'common/variables.nix')
-rw-r--r--common/variables.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/common/variables.nix b/common/variables.nix
new file mode 100644
index 0000000..b3a062b
--- /dev/null
+++ b/common/variables.nix
@@ -0,0 +1,27 @@
+{
+ tmconfig,
+ pkgs,
+ lib,
+ ...
+}: {
+ # Type definitions for nix variables used in this configuration
+ options = with lib;
+ with types; {
+ myUserName = mkOption {type = str;};
+ myHostName = mkOption {type = str;};
+ myWallPaperPathString = mkOption {type = str;};
+ myDisplayName = mkOption {type = str;};
+ myEmail = mkOption {type = str;};
+ displayScale = mkOption {type = int;};
+ };
+
+ # Default values for this configuration
+ config = rec {
+ myUserName = "stvnliu";
+ myHostName = "homelab-nix";
+ displayScale = 2;
+ myWallPaperPathString = "/home/${myUserName}/wallpaper.png";
+ myDisplayName = "Zhongheng Liu";
+ myEmail = "z.liu@outlook.com.gr";
+ };
+}