meta: Begin using variables in main configuration

This overall makes it easier to keep track of options we might want to
change (and might be defined in multiple places) without having to worry
about where those places actually are.
This commit is contained in:
Donovan Glover 2023-06-05 18:56:29 -04:00
parent 46c1c99ab6
commit 21eb2ab9ac
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -1,6 +1,6 @@
{ pkgs, lib, hypr-contrib, nix-gaming, ... }:
{
let VARIABLES = import ./variables.nix; in {
imports = [
./modules
./containers/rar.nix
@ -34,8 +34,8 @@
programs.gamemode.enable = true;
environment.systemPackages = with pkgs; [
hypr-contrib.packages."x86_64-linux".grimblast
nix-gaming.packages."x86_64-linux".osu-stable
hypr-contrib.packages."${VARIABLES.system}".grimblast
nix-gaming.packages."${VARIABLES.system}".osu-stable
(pkgs.callPackage ./packages/waycorner { })
(pkgs.callPackage ./packages/srb2 { })
slade
@ -139,7 +139,7 @@
services.logind.lidSwitch = "ignore";
# timezone
time.timeZone = "America/New_York";
time.timeZone = "${VARIABLES.timezone}";
# user
users = {
@ -163,7 +163,7 @@
# networking
networking = {
hostName = "nixos";
hostName = VARIABLES.hostname;
networkmanager = {
enable = true;