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.
This commit is contained in:
Zhongheng Liu 2024-08-12 09:27:59 +08:00
commit 2fcbfd8d88
No known key found for this signature in database
3 changed files with 28 additions and 20 deletions

View file

@ -1,19 +0,0 @@
{
config,
pkgs,
lib,
...
}: {
# Type definitions for nix variables used in this configuration
options = with lib;
with types; {
myUserName = mkOption {type = str;};
myHostName = mkOption {type = str;};
};
# Default values for this configuration
config = {
myUserName = "stvnliu";
myHostName = "homelab-nix";
};
}