aboutsummaryrefslogtreecommitdiff
path: root/common/variables.nix
blob: b3a062b2ec45a7f7a526809030862ed4d67dfb30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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";
  };
}