2025-12-04 18:05:58 +00:00
|
|
|
# configuration-template.nix
|
|
|
|
|
####################################################################################################################################################################
|
|
|
|
|
## IMPORTANT: On a fresh NixOS install, run this command first: ##
|
|
|
|
|
## nix-shell -p git --run "sudo nix-channel --add https://nixos.org/channels/nixos-unstable nixos && sudo nix-channel --update && sudo nixos-rebuild switch" ##
|
|
|
|
|
## ##
|
|
|
|
|
####################################################################################################################################################################
|
|
|
|
|
|
2025-12-02 22:58:56 +00:00
|
|
|
{ config, pkgs, lib, ... }:
|
2025-12-04 18:05:58 +00:00
|
|
|
let
|
|
|
|
|
gitConfig = builtins.fetchGit {
|
|
|
|
|
url = "https://github.com/ediblerope/nixos-config";
|
|
|
|
|
ref = "main";
|
2025-12-04 17:56:33 +00:00
|
|
|
};
|
2025-12-04 18:05:58 +00:00
|
|
|
in
|
|
|
|
|
{
|
|
|
|
|
imports = [
|
|
|
|
|
./hardware-configuration.nix
|
|
|
|
|
"${gitConfig}/git.nix"
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
networking.hostName = "HOSTNAME-HERE"; # Change this!
|
2025-12-04 17:56:33 +00:00
|
|
|
|
2025-12-04 18:05:58 +00:00
|
|
|
######################################################
|
|
|
|
|
## Add Nixos-default generated boot loader settings ##
|
|
|
|
|
######################################################
|
|
|
|
|
|
|
|
|
|
system.stateVersion = "25.11";
|
2025-05-08 19:23:55 +01:00
|
|
|
}
|