Update configuration.nix
This commit is contained in:
parent
2be39a286e
commit
929efa6dcf
1 changed files with 16 additions and 14 deletions
|
|
@ -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 = [
|
imports = [
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix # This stays local (machine-specific)
|
||||||
./base.nix
|
"${gitConfig}/git.nix" # Your main config from GitHub
|
||||||
];
|
];
|
||||||
|
|
||||||
# Bootloader.
|
# ONLY thing that changes per machine
|
||||||
boot.loader.grub.enable = true;
|
networking.hostName = ""; # Change this per machine
|
||||||
boot.loader.grub.device = "/dev/vda";
|
|
||||||
boot.loader.grub.useOSProber = true;
|
|
||||||
|
|
||||||
networking.hostName = "FredOS-gaming";
|
|
||||||
|
|
||||||
system.stateVersion = "25.11";
|
system.stateVersion = "25.11";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue