From 56c20d9d8e8cdd985201615fdc8dc78060f7a147 Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Mon, 5 Jun 2023 18:51:07 -0400 Subject: [PATCH] meta: Only capitalize variables part This should make creating and using variables less annoying. --- flake.nix | 4 ++-- variables.nix | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/flake.nix b/flake.nix index c2f29089..fa321828 100644 --- a/flake.nix +++ b/flake.nix @@ -34,8 +34,8 @@ outputs = { self, nixpkgs, home-manager, hyprland, stylix, nix-gaming, ... }@attrs: let VARIABLES = import ./variables.nix; in { - nixosConfigurations."${VARIABLES.HOSTNAME}" = nixpkgs.lib.nixosSystem { - system = VARIABLES.SYSTEM; + nixosConfigurations."${VARIABLES.hostname}" = nixpkgs.lib.nixosSystem { + system = VARIABLES.system; specialArgs = attrs; modules = [ home-manager.nixosModules.home-manager diff --git a/variables.nix b/variables.nix index 47d7092b..967c27f4 100644 --- a/variables.nix +++ b/variables.nix @@ -1,4 +1,4 @@ { - HOSTNAME = "nixos"; - SYSTEM = "x86_64-linux"; + hostname = "nixos"; + system = "x86_64-linux"; }