treewide: apply statix fixes

This commit is contained in:
Tobias Happ 2022-09-03 17:11:00 +02:00
parent 7d1ed0fbaa
commit a5ed8b213f
4 changed files with 5 additions and 6 deletions

View file

@ -16,8 +16,7 @@ let
configModule =
if config != null then config
else if builtins.pathExists defaultConfigFile then defaultConfigFile
else if pkgs.config ? nix-on-droid then pkgs.config.nix-on-droid
else throw "No config file found! Create one in ~/.config/nixpkgs/nix-on-droid.nix";
else pkgs.config.nix-on-droid or (throw "No config file found! Create one in ~/.config/nixpkgs/nix-on-droid.nix");
rawModule = evalModules {
modules = [

View file

@ -128,7 +128,7 @@ in
# Fortunately, it's not that hard to us to workaround with just a symlink.
environment.etc = mkIf cfg.useUserPackages {
"profiles/per-user/${config.user.userName}".source =
builtins.toPath "${config.user.home}/.nix-profile";
/. + "${config.user.home}/.nix-profile";
};
};

View file

@ -28,12 +28,12 @@ let
optionalAttrs (lhs ? packageOverrides) {
packageOverrides = pkgs:
optCall lhs.packageOverrides pkgs //
optCall (attrByPath [ "packageOverrides" ] ({ }) rhs) pkgs;
optCall (attrByPath [ "packageOverrides" ] { } rhs) pkgs;
} //
optionalAttrs (lhs ? perlPackageOverrides) {
perlPackageOverrides = pkgs:
optCall lhs.perlPackageOverrides pkgs //
optCall (attrByPath [ "perlPackageOverrides" ] ({ }) rhs) pkgs;
optCall (attrByPath [ "perlPackageOverrides" ] { } rhs) pkgs;
};
configType = mkOptionType {

View file

@ -3,7 +3,7 @@
{ pkgs ? (import ../pkgs/lib/load-nixpkgs.nix { }) }:
pkgs.callPackage ../pkgs/proot-termux {
stdenv = pkgs.stdenv;
inherit (pkgs) stdenv;
static = false;
outputBinaryName = "proot";
}