meta: Only capitalize variables part

This should make creating and using variables less annoying.
This commit is contained in:
Donovan Glover 2023-06-05 18:51:07 -04:00
parent 24756ad683
commit 56c20d9d8e
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65
2 changed files with 4 additions and 4 deletions

View File

@ -34,8 +34,8 @@
outputs = { self, nixpkgs, home-manager, hyprland, stylix, nix-gaming, ... }@attrs: let outputs = { self, nixpkgs, home-manager, hyprland, stylix, nix-gaming, ... }@attrs: let
VARIABLES = import ./variables.nix; VARIABLES = import ./variables.nix;
in { in {
nixosConfigurations."${VARIABLES.HOSTNAME}" = nixpkgs.lib.nixosSystem { nixosConfigurations."${VARIABLES.hostname}" = nixpkgs.lib.nixosSystem {
system = VARIABLES.SYSTEM; system = VARIABLES.system;
specialArgs = attrs; specialArgs = attrs;
modules = [ modules = [
home-manager.nixosModules.home-manager home-manager.nixosModules.home-manager

View File

@ -1,4 +1,4 @@
{ {
HOSTNAME = "nixos"; hostname = "nixos";
SYSTEM = "x86_64-linux"; system = "x86_64-linux";
} }