mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-06 01:38:06 +00:00
Compare commits
No commits in common. "0b4fe5329851ac2ef7e61a27ffdfbe392db352cb" and "a64e11dd6aa02c14f7fb03fc57e0f9a7e49c259a" have entirely different histories.
0b4fe53298
...
a64e11dd6a
8 changed files with 46 additions and 12 deletions
4
boot.nix
4
boot.nix
|
|
@ -282,10 +282,8 @@ in {
|
||||||
optionalAttrs config.aviallon.optimizations.enable (
|
optionalAttrs config.aviallon.optimizations.enable (
|
||||||
myLib.attrsets.mergeAttrsRecursive
|
myLib.attrsets.mergeAttrsRecursive
|
||||||
{
|
{
|
||||||
env = {
|
|
||||||
KCFLAGS = kCflags;
|
KCFLAGS = kCflags;
|
||||||
KRUSTFLAGS = kRustflags;
|
KRUSTFLAGS = kRustflags;
|
||||||
};
|
|
||||||
}
|
}
|
||||||
(traceValWithPrefix "aviallon.boot.kernel.addOptimizationAttributes" cfg.kernel.addOptimizationAttributes)
|
(traceValWithPrefix "aviallon.boot.kernel.addOptimizationAttributes" cfg.kernel.addOptimizationAttributes)
|
||||||
)
|
)
|
||||||
|
|
@ -319,7 +317,7 @@ in {
|
||||||
# moddedKernel
|
# moddedKernel
|
||||||
# ;
|
# ;
|
||||||
|
|
||||||
in mkOverride 2 (pkgs.linuxPackagesFor noDRMKernel);
|
in mkOverride 2 (pkgs.linuxPackagesFor moddedKernel);
|
||||||
|
|
||||||
kernelPatches = []
|
kernelPatches = []
|
||||||
++ optional cfg.x32abi.enable customKernelPatches.enableX32ABI
|
++ optional cfg.x32abi.enable customKernelPatches.enableX32ABI
|
||||||
|
|
|
||||||
|
|
@ -76,7 +76,8 @@ in {
|
||||||
virt-viewer
|
virt-viewer
|
||||||
qtemu
|
qtemu
|
||||||
|
|
||||||
adbfs-rootless
|
libsForQt5.kdevelop
|
||||||
|
unstable.adbfs-rootless
|
||||||
|
|
||||||
amdctl
|
amdctl
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -19,8 +19,8 @@ in {
|
||||||
ryujinx.package = mkOption {
|
ryujinx.package = mkOption {
|
||||||
description = "Ryujinx Switch emulator package";
|
description = "Ryujinx Switch emulator package";
|
||||||
type = myLib.types.package';
|
type = myLib.types.package';
|
||||||
default = pkgs.ryubing;
|
default = pkgs.unstable.ryujinx;
|
||||||
example = literalExpression "pkgs.ryujinx";
|
example = literalExpression "pkgs.unstable.ryujinx";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -30,8 +30,7 @@ in {
|
||||||
|
|
||||||
scribus
|
scribus
|
||||||
yt-dlp
|
yt-dlp
|
||||||
#jellyfin-media-player # https://github.com/NixOS/nixpkgs/issues/437865 https://github.com/jellyfin/jellyfin-media-player/issues/282
|
jellyfin-media-player
|
||||||
jellyfin-mpv-shim
|
|
||||||
|
|
||||||
#jamesdsp # Audio post-processing
|
#jamesdsp # Audio post-processing
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@ let
|
||||||
in {
|
in {
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
|
./plasma5.nix
|
||||||
./plasma6.nix
|
./plasma6.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
||||||
29
desktop/plasma/plasma5.nix
Normal file
29
desktop/plasma/plasma5.nix
Normal file
|
|
@ -0,0 +1,29 @@
|
||||||
|
{ config, pkgs, lib, ... }:
|
||||||
|
with lib;
|
||||||
|
let
|
||||||
|
cfg = config.aviallon.desktop;
|
||||||
|
generic = import ./generic.nix {
|
||||||
|
kdePackages = pkgs.libsForQt5;
|
||||||
|
};
|
||||||
|
in {
|
||||||
|
config = mkIf (cfg.enable && (cfg.environment == "plasma")) {
|
||||||
|
# Enable the Plasma 5 Desktop Environment.
|
||||||
|
services.xserver.desktopManager.plasma5 = {
|
||||||
|
enable = true;
|
||||||
|
runUsingSystemd = true;
|
||||||
|
useQtScaling = true;
|
||||||
|
|
||||||
|
# Removed in: https://github.com/NixOS/nixpkgs/pull/172078
|
||||||
|
# and: https://github.com/NixOS/nixpkgs/pull/221721
|
||||||
|
# Once this (https://invent.kde.org/plasma/powerdevil/-/issues/19) is solved, make PR to add it back (prehaps by default?)
|
||||||
|
# supportDDC = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
environment.systemPackages = generic.commonPackages ++ [
|
||||||
|
pkgs.kio-fuse
|
||||||
|
];
|
||||||
|
|
||||||
|
# We prefer Plasma Wayland
|
||||||
|
services.displayManager.defaultSession = "plasmawayland";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -65,7 +65,7 @@ in {
|
||||||
"1101"
|
"1101"
|
||||||
"1102" ];
|
"1102" ];
|
||||||
example = [ "900" "1031" ];
|
example = [ "900" "1031" ];
|
||||||
type = with types; nullOr (listOf str);
|
type = with types; nullOr (listOf string);
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -178,7 +178,13 @@ in {
|
||||||
nix.settings.substituters = [ "https://cuda-maintainers.cachix.org" ];
|
nix.settings.substituters = [ "https://cuda-maintainers.cachix.org" ];
|
||||||
nix.settings.trusted-public-keys = [ "cuda-maintainers.cachix.org-1:0dq3bujKpuEPMCX6U4WylrUDZ9JyUG0VpVZa7CNfq5E=" ];
|
nix.settings.trusted-public-keys = [ "cuda-maintainers.cachix.org-1:0dq3bujKpuEPMCX6U4WylrUDZ9JyUG0VpVZa7CNfq5E=" ];
|
||||||
|
|
||||||
nixpkgs.overlays = []
|
nixpkgs.overlays =
|
||||||
|
[(final: prev: {
|
||||||
|
jellyfin-media-player = prev.runCommand "jellyfinmediaplayer" { nativeBuildInputs = [ prev.makeBinaryWrapper ]; } ''
|
||||||
|
mkdir -p $out/bin
|
||||||
|
makeWrapper ${getBin prev.jellyfin-media-player}/bin/jellyfinmediaplayer $out/bin/jellyfinmediaplayer --inherit-argv0 --add-flags "--platform=xcb"
|
||||||
|
'';
|
||||||
|
})]
|
||||||
++ optional (cfg.proprietary.version == "unstable_beta") (final: prev: {
|
++ optional (cfg.proprietary.version == "unstable_beta") (final: prev: {
|
||||||
cudaPackages_11 = final.unstable.cudaPackages_11;
|
cudaPackages_11 = final.unstable.cudaPackages_11;
|
||||||
cudaPackages_12 = final.unstable.cudaPackages_12;
|
cudaPackages_12 = final.unstable.cudaPackages_12;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue