From d1675f0dd8a66edf2d699e496fc398921426f954 Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 8 Jan 2025 18:41:58 +0000 Subject: [PATCH] Update XDG config and distributed builds settings - Add mimeapps.list creation for KDE desktops in default.nix - Modify distributed builds settings for local-machine.nix - Update supportedFeatures and add speedFactor, maxJobs in local-machine.nix. --- home/common/optional/desktop/common/xdg/default.nix | 8 ++++++-- .../common/optional/distributed_builds/local-machine.nix | 4 +++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/home/common/optional/desktop/common/xdg/default.nix b/home/common/optional/desktop/common/xdg/default.nix index 32685a3..82c4c29 100644 --- a/home/common/optional/desktop/common/xdg/default.nix +++ b/home/common/optional/desktop/common/xdg/default.nix @@ -1,4 +1,5 @@ -{pkgs, ...}: { +{pkgs, config, lib, ...}: { + xdg.desktopEntries = { firefox = { name = "Firefox"; @@ -31,8 +32,11 @@ }; }; + # Forces creation of mimeapps.list if hm link has been overwritten by another application + # https://discourse.nixos.org/t/home-manager-and-the-mimeapps-list-file-on-plasma-kde-desktops/37694 + xdg.configFile."mimeapps.list" = lib.mkIf config.xdg.mimeApps.enable { force = true; }; xdg.mimeApps = { - enable = true; + enable = lib.mkDefault true; defaultApplications = { "application/pdf" = "zathura-wrapper.desktop"; diff --git a/hosts/common/optional/distributed_builds/local-machine.nix b/hosts/common/optional/distributed_builds/local-machine.nix index 277a223..78773ca 100644 --- a/hosts/common/optional/distributed_builds/local-machine.nix +++ b/hosts/common/optional/distributed_builds/local-machine.nix @@ -10,9 +10,11 @@ in { hostName = remoteMachineIp; sshUser = "remotebuild"; + speedFactor = 1; + maxJobs = 10; sshKey = "/root/.ssh/remotebuild"; system = pkgs.stdenv.hostPlatform.system; - supportedFeatures = [ "nixos-test" "big-parallel" "kvm" ]; + supportedFeatures = [ "nixos-test" "benchmark" "big-parallel" "kvm" ]; } ];