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"; }