feat: created variable-based nix configuration

Added variables.nix
Added Syncthing service definition
This commit is contained in:
Zhongheng Liu 2024-07-31 14:46:59 +00:00
commit 0770a70d0b
4 changed files with 21 additions and 13 deletions

15
nixos/variables.nix Normal file
View file

@ -0,0 +1,15 @@
{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";
};
}