Reorganise hardware vs host config, tidy settings and services
This commit is contained in:
parent
effc4da3a6
commit
93ea194da4
13 changed files with 185 additions and 195 deletions
|
|
@ -1,60 +1,22 @@
|
|||
{ config, pkgs, lib, inputs, ... }:
|
||||
|
||||
{
|
||||
config = lib.mkMerge [
|
||||
{
|
||||
nixpkgs.config.allowInsecurePredicate = pkg:
|
||||
(lib.hasPrefix "broadcom-sta" (lib.getName pkg));
|
||||
}
|
||||
config = lib.mkIf (config.networking.hostName == "FredOS-Macbook") {
|
||||
environment.systemPackages = with pkgs; [
|
||||
tlp
|
||||
vesktop
|
||||
adwaita-icon-theme
|
||||
mission-center
|
||||
vlc
|
||||
geary
|
||||
proton-vpn
|
||||
onlyoffice-desktopeditors
|
||||
];
|
||||
|
||||
(lib.mkIf (config.networking.hostName == "FredOS-Macbook") {
|
||||
# ... all your other settings (tlp, boot, firmware) ...
|
||||
services.tlp.enable = false;
|
||||
services.power-profiles-daemon.enable = true;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
tlp
|
||||
vesktop
|
||||
adwaita-icon-theme
|
||||
mission-center
|
||||
vlc
|
||||
geary
|
||||
proton-vpn
|
||||
onlyoffice-desktopeditors
|
||||
];
|
||||
|
||||
|
||||
services.tlp.enable = false;
|
||||
services.power-profiles-daemon.enable = true;
|
||||
|
||||
hardware.facetimehd.enable = true;
|
||||
|
||||
boot = {
|
||||
loader = {
|
||||
systemd-boot.enable = true;
|
||||
efi.canTouchEfiVariables = true;
|
||||
};
|
||||
extraModulePackages = [ config.boot.kernelPackages.broadcom_sta ];
|
||||
blacklistedKernelModules = [ "b43" "bcma" "ssb" ];
|
||||
kernelParams = [ "acpi_osi=" ];
|
||||
};
|
||||
hardware.enableRedistributableFirmware = true;
|
||||
boot.loader.systemd-boot.configurationLimit = 5;
|
||||
boot.initrd.systemd.enable = true;
|
||||
|
||||
services.xserver.deviceSection = lib.mkDefault ''
|
||||
Option "TearFree" "true"
|
||||
'';
|
||||
|
||||
#Enable Bluetooth
|
||||
hardware.bluetooth = {
|
||||
enable = true;
|
||||
powerOnBoot = true;
|
||||
settings = {
|
||||
General = {
|
||||
Enable = "Source,Sink,Media,Socket";
|
||||
Experimental = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
})
|
||||
];
|
||||
boot.loader.systemd-boot.configurationLimit = 5;
|
||||
boot.initrd.systemd.enable = true;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue