Update configuration.nix
This commit is contained in:
parent
53480da14c
commit
c91219d407
1 changed files with 9 additions and 7 deletions
|
|
@ -1,7 +1,6 @@
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
# Fetch your config from GitHub
|
|
||||||
gitConfig = builtins.fetchGit {
|
gitConfig = builtins.fetchGit {
|
||||||
url = "https://github.com/ediblerope/nixos-config";
|
url = "https://github.com/ediblerope/nixos-config";
|
||||||
ref = "main";
|
ref = "main";
|
||||||
|
|
@ -9,12 +8,15 @@ let
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./hardware-configuration.nix # This stays local (machine-specific)
|
./hardware-configuration.nix
|
||||||
"${gitConfig}/git.nix" # Your main config from GitHub
|
"${gitConfig}/git.nix"
|
||||||
];
|
];
|
||||||
|
|
||||||
# ONLY thing that changes per machine
|
networking.hostName = "FredOS-Gaming";
|
||||||
networking.hostName = ""; # Change this per machine
|
|
||||||
|
boot.loader.grub.enable = true;
|
||||||
|
boot.loader.grub.device = "/dev/vda";
|
||||||
|
boot.loader.grub.useOSProber = true;
|
||||||
|
|
||||||
system.stateVersion = "25.11";
|
system.stateVersion = "25.11";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue