From 929efa6dcf0b8c9b6ef828af0b79cb8a8ea101d6 Mon Sep 17 00:00:00 2001 From: ediblerope Date: Tue, 2 Dec 2025 21:35:16 +0000 Subject: [PATCH] Update configuration.nix --- configuration.nix | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/configuration.nix b/configuration.nix index 7429820..10411ac 100644 --- a/configuration.nix +++ b/configuration.nix @@ -1,18 +1,20 @@ -{ config, pkgs, lib, ... }: +{ config, pkgs, ... }: +let + # Fetch your config from GitHub + gitConfig = builtins.fetchGit { + url = "https://github.com/ediblerope/nixos-config"; + ref = "main"; + }; +in { -imports = [ - ./hardware-configuration.nix - ./base.nix -]; - -# Bootloader. -boot.loader.grub.enable = true; -boot.loader.grub.device = "/dev/vda"; -boot.loader.grub.useOSProber = true; - -networking.hostName = "FredOS-gaming"; - -system.stateVersion = "25.11"; + imports = [ + ./hardware-configuration.nix # This stays local (machine-specific) + "${gitConfig}/git.nix" # Your main config from GitHub + ]; + # ONLY thing that changes per machine + networking.hostName = ""; # Change this per machine + + system.stateVersion = "25.11"; }