add beets
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
../../modules/site.nix
|
||||
../../modules/gitea.nix
|
||||
../../modules/navidrome.nix
|
||||
../../modules/immich.nix
|
||||
];
|
||||
|
||||
network.node = "desktop";
|
||||
@@ -82,6 +83,29 @@
|
||||
AllowSuspendThenHibernate = "no";
|
||||
};
|
||||
|
||||
systemd.services.amdgpu-performance = {
|
||||
description = "Force AMD GPU performance level to high";
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
ExecStart = ''
|
||||
${pkgs.bash}/bin/bash -c '
|
||||
for gpu in /sys/class/drm/card*/device; do
|
||||
if [ -f "$gpu/vendor" ] && [ "$(cat "$gpu/vendor")" = "0x1002" ]; then
|
||||
echo high > "$gpu/power_dpm_force_performance_level"
|
||||
fi
|
||||
done
|
||||
'
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
whipper
|
||||
flac
|
||||
];
|
||||
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
system.stateVersion = "26.05";
|
||||
|
||||
@@ -16,6 +16,10 @@
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||
|
||||
boot.kernelParams = [
|
||||
"amdgpu.runpm=0"
|
||||
];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/d7450680-7d53-4842-83c5-7fc32526dff1";
|
||||
fsType = "ext4";
|
||||
|
||||
Reference in New Issue
Block a user