nixos/hosts/FredOS-Macbook.nix

61 lines
1.5 KiB
Nix
Raw Normal View History

2026-03-28 13:42:35 +00:00
{ config, pkgs, lib, inputs, ... }:
2026-01-05 10:26:20 +00:00
2025-12-02 21:23:06 +00:00
{
2026-01-05 10:26:20 +00:00
config = lib.mkMerge [
{
nixpkgs.config.allowInsecurePredicate = pkg:
(lib.hasPrefix "broadcom-sta" (lib.getName pkg));
}
(lib.mkIf (config.networking.hostName == "FredOS-Macbook") {
# ... all your other settings (tlp, boot, firmware) ...
2026-01-10 12:36:28 +00:00
environment.systemPackages = with pkgs; [
tlp
vesktop
2026-01-20 08:22:20 +00:00
adwaita-icon-theme
mission-center
2026-02-15 18:15:02 +00:00
vlc
geary
2026-03-28 10:23:53 +00:00
proton-vpn
2026-03-28 15:57:10 +00:00
onlyoffice-desktopeditors
2026-01-10 12:36:28 +00:00
];
2026-03-28 13:41:45 +00:00
2026-03-28 13:39:44 +00:00
2026-01-05 10:26:20 +00:00
services.tlp.enable = false;
services.power-profiles-daemon.enable = true;
hardware.facetimehd.enable = true;
2026-01-05 10:19:12 +00:00
2026-01-05 10:26:20 +00:00
boot = {
loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
extraModulePackages = [ config.boot.kernelPackages.broadcom_sta ];
blacklistedKernelModules = [ "b43" "bcma" "ssb" ];
2026-01-16 14:55:20 +00:00
kernelParams = [ "acpi_osi=" ];
2026-01-05 10:26:20 +00:00
};
hardware.enableRedistributableFirmware = true;
2026-03-28 15:28:37 +00:00
boot.loader.systemd-boot.configurationLimit = 5;
boot.initrd.systemd.enable = true;
2026-01-05 10:26:20 +00:00
2026-03-28 15:28:37 +00:00
services.xserver.deviceSection = lib.mkDefault ''
Option "TearFree" "true"
'';
2026-01-16 14:55:20 +00:00
2026-03-28 15:28:37 +00:00
#Enable Bluetooth
hardware.bluetooth = {
enable = true;
powerOnBoot = true;
settings = {
General = {
Enable = "Source,Sink,Media,Socket";
Experimental = true;
};
};
2025-12-30 14:52:32 +00:00
};
2026-01-05 10:26:20 +00:00
})
];
2025-12-02 21:23:06 +00:00
}