1
0
forked from extern/nix-config

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
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

View File

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