mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-08-09 15:05:07 +02:00
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:
10
common.nix
10
common.nix
@ -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;
|
||||
|
Reference in New Issue
Block a user