From 0770a70d0bb4899cc2496662482ec20b0b6588c5 Mon Sep 17 00:00:00 2001 From: Zhongheng Liu Date: Wed, 31 Jul 2024 14:46:59 +0000 Subject: feat: created variable-based nix configuration Added variables.nix Added Syncthing service definition --- nixos/variables.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 nixos/variables.nix (limited to 'nixos/variables.nix') diff --git a/nixos/variables.nix b/nixos/variables.nix new file mode 100644 index 0000000..e6b111d --- /dev/null +++ b/nixos/variables.nix @@ -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"; + }; +} -- cgit