treewide: drop 25.05 compat code
This commit is contained in:
parent
388f38215d
commit
639ca38126
3 changed files with 16 additions and 36 deletions
|
|
@ -7,7 +7,6 @@
|
|||
|
||||
let
|
||||
inherit (lib) types;
|
||||
nixosVersion = lib.versions.majorMinor lib.version;
|
||||
|
||||
audioFiles = pkgs.fetchFromGitHub {
|
||||
owner = "kekrby";
|
||||
|
|
@ -106,16 +105,9 @@ in
|
|||
powerManagement.enable = true;
|
||||
}
|
||||
|
||||
(
|
||||
if lib.versionAtLeast nixosVersion "25.05" then
|
||||
{
|
||||
services.pulseaudio.package = overrideAudioFiles pkgs.pulseaudio "src/modules/";
|
||||
}
|
||||
else
|
||||
{
|
||||
hardware.pulseaudio.package = overrideAudioFiles pkgs.pulseaudio "src/modules/";
|
||||
}
|
||||
)
|
||||
{
|
||||
services.pulseaudio.package = overrideAudioFiles pkgs.pulseaudio "src/modules/";
|
||||
}
|
||||
|
||||
(lib.mkIf t2Cfg.enableIGPU {
|
||||
# Enable the iGPU by default if present
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
{ pkgs, lib, ... }:
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
|
|
@ -14,8 +14,7 @@
|
|||
path = "${pkgs.modemmanager}/share/ModemManager/fcc-unlock.available.d/${id}";
|
||||
};
|
||||
in
|
||||
if lib.versionOlder lib.version "25.05pre" then
|
||||
{ networkmanager.fccUnlockScripts = [ fcc_unlock_script ]; }
|
||||
else
|
||||
{ modemmanager.fccUnlockScripts = [ fcc_unlock_script ]; };
|
||||
{
|
||||
modemmanager.fccUnlockScripts = [ fcc_unlock_script ];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,25 +19,14 @@
|
|||
'';
|
||||
};
|
||||
in
|
||||
if lib.versionOlder (lib.versions.majorMinor lib.version) "25.05" then
|
||||
{
|
||||
assertions = [
|
||||
{
|
||||
assertion = config.hardware.pulseaudio.enable;
|
||||
message = "Call audio on Librem5 requires pulse audio to be enabled through `hardware.pulseaudio.enable`.";
|
||||
}
|
||||
];
|
||||
hardware.pulseaudio = paConfig;
|
||||
}
|
||||
else
|
||||
{
|
||||
assertions = [
|
||||
{
|
||||
assertion = config.services.pulseaudio.enable;
|
||||
message = "Call audio on Librem5 requires pulse audio to be enabled through `services.pulseaudio.enable`.";
|
||||
}
|
||||
];
|
||||
services.pulseaudio = paConfig;
|
||||
}
|
||||
{
|
||||
assertions = [
|
||||
{
|
||||
assertion = config.services.pulseaudio.enable;
|
||||
message = "Call audio on Librem5 requires pulse audio to be enabled through `services.pulseaudio.enable`.";
|
||||
}
|
||||
];
|
||||
services.pulseaudio = paConfig;
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue