nixos/configuration-template.nix

31 lines
1.3 KiB
Nix
Raw Normal View History

2025-12-04 13:06:36 +00:00
# configuration-template.nix
###############################################################################################################
## IMPORTANT: On a fresh NixOS install, run this command first: ##
## sudo nix-channel --add https://nixos.org/channels/nixos-unstable nixos && sudo nix-channel --update ##
## ##
## Then copy this file to /etc/nixos/configuration.nix and run: ##
## sudo nixos-rebuild switch ##
###############################################################################################################
2025-12-02 22:58:56 +00:00
{ config, pkgs, lib, ... }:
2025-12-02 21:35:16 +00:00
let
gitConfig = builtins.fetchGit {
url = "https://github.com/ediblerope/nixos-config";
ref = "main";
};
in
2025-12-02 20:35:16 +00:00
{
2025-12-04 11:44:28 +00:00
imports = [
./hardware-configuration.nix
"${gitConfig}/git.nix"
];
2025-12-04 13:06:36 +00:00
networking.hostName = "HOSTNAME-HERE"; # Change this!
######################################################
## Add Nixos-default generated boot loader settings ##
######################################################
2025-12-04 11:44:28 +00:00
2025-12-04 13:06:36 +00:00
system.stateVersion = "25.11";
2025-05-08 19:23:55 +01:00
}