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