nixos/configuration-template.nix

28 lines
1.6 KiB
Nix
Raw Normal View History

2025-12-04 18:05:58 +00:00
# configuration-template.nix
####################################################################################################################################################################
## IMPORTANT: On a fresh NixOS install, run this command first: ##
2025-12-25 11:16:32 +00:00
## nix-shell -p git --run "sudo nix-channel --add https://nixos.org/channels/nixos-unstable nixos && \ ##
## sudo nix-channel --add https://github.com/gmodena/nix-flatpak/archive/main.tar.gz nix-flatpak && \ ##
## sudo nix-channel --update && sudo nixos-rebuild switch" ##
2025-12-04 18:05:58 +00:00
## ##
####################################################################################################################################################################
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
2026-01-20 08:20:07 +00:00
"${gitConfig}/common.nix"
2025-12-04 18:05:58 +00:00
];
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
}