nixos-config/common/variables.nix
Zhongheng Liu 2fcbfd8d88
refactor: move common variables referenced into common/variables.nix
In the future, should have independent variable files for home-manager and nixos-specific,

in their respective directories.
2024-08-12 09:27:59 +08:00

27 lines
697 B
Nix

{
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";
};
}