Update configuration-template.nix

This commit is contained in:
ediblerope 2025-12-04 18:05:58 +00:00 committed by GitHub
parent ea65193369
commit f9551ab5a5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,32 +1,28 @@
# hosts/FredOS-Macbook.nix
# 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" ##
## ##
####################################################################################################################################################################
{ config, pkgs, lib, ... }:
let
gitConfig = builtins.fetchGit {
url = "https://github.com/ediblerope/nixos-config";
ref = "main";
};
in
{
config = lib.mkIf (config.networking.hostName == "FredOS-Macbook") {
environment.systemPackages = with pkgs; [
# Package names here
];
imports = [
./hardware-configuration.nix
"${gitConfig}/git.nix"
];
# Bootloader
boot = {
loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
networking.hostName = "HOSTNAME-HERE"; # Change this!
# Enable Broadcom WL for Macbook
extraModulePackages = [ pkgs.linuxPackages.broadcom_sta ]; # Use pkgs, not config
######################################################
## Add Nixos-default generated boot loader settings ##
######################################################
blacklistedKernelModules = [
"b43"
"bcma"
"ssb"
];
};
hardware.enableRedistributableFirmware = true;
nixpkgs.config.permittedInsecurePackages = [
"broadcom-sta-6.30.223.271-59-6.18" # Updated version number
];
};
system.stateVersion = "25.11";
}