style: fix some statix issues

This commit is contained in:
Felix Schröter 2022-09-28 15:27:19 +02:00
parent d16258e1ab
commit 9965f73c74
Signed by: felschr
GPG key ID: 671E39E6744C807D
4 changed files with 6 additions and 6 deletions

View file

@ -61,8 +61,8 @@
deconz = final.qt5.callPackage ./pkgs/deconz { };
};
glslls = final: prev: {
glsl-language-server =
nixpkgs-glslls.legacyPackages.${final.system}.glsl-language-server;
inherit (nixpkgs-glslls.legacyPackages.${final.system})
glsl-language-server;
};
};
nixosModules = {

View file

@ -2,7 +2,7 @@
with lib;
let
firefox-addons = pkgs.nur.repos.rycee.firefox-addons;
inherit (pkgs.nur.repos.rycee) firefox-addons;
prefer-dark-theme =
config.gtk.gtk3.extraConfig.gtk-application-prefer-dark-theme;

View file

@ -5,7 +5,7 @@ with lib;
{
config = {
systemd.services = mapAttrs' (name: backup:
nameValuePair "restic-backups-${name}" ({
nameValuePair "restic-backups-${name}" {
serviceConfig = {
CPUWeight = 25;
MemoryHigh = "50%";
@ -14,6 +14,6 @@ with lib;
IOSchedulingClass = "idle";
IOSchedulingPriority = 7;
};
})) config.services.restic.backups;
}) config.services.restic.backups;
};
}

View file

@ -24,7 +24,7 @@ in {
environmentFile = config.age.secrets.restic-b2.path;
passwordFile = config.age.secrets.restic-password.path;
timerConfig.OnCalendar = "daily";
paths = paths;
inherit paths;
extraBackupArgs = let
ignoreFile = builtins.toFile "ignore"
(foldl (a: b: a + "\n" + b) "" ignorePatterns);