forked from extern/nix-config
meta: Only capitalize variables part
This should make creating and using variables less annoying.
This commit is contained in:
parent
24756ad683
commit
56c20d9d8e
@ -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
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
HOSTNAME = "nixos";
|
hostname = "nixos";
|
||||||
SYSTEM = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user