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