treewide: deadnix

This commit is contained in:
K900
2024-02-03 12:16:47 +03:00
parent 1855703b7f
commit a27adbec40
21 changed files with 20 additions and 39 deletions

View File

@@ -2,9 +2,7 @@
let
inherit (lib)
mkDefault
mkIf
mkMerge
mkOption
types
;
@@ -43,8 +41,8 @@ in
extraPythonPackages = mkOption {
type = types.functionTo (types.listOf types.package);
example = lib.literalExpression "pythonPackages: with pythonPackages; [ hid ]";
default = pythonPackages: with pythonPackages; [];
defaultText = lib.literalExpression "pythonPackages: with pythonPackages; []";
default = [];
defaultText = lib.literalExpression "[]";
description = lib.mdDoc ''
Extra Python packages to add to the PYTHONPATH of the loader.
'';

View File

@@ -1,8 +1,7 @@
{ config, lib, pkgs, ... }:
{ config, lib, ... }:
let
inherit (lib)
mkDefault
mkIf
mkMerge
mkOption

View File

@@ -4,9 +4,7 @@
let
inherit (lib)
mkDefault
mkIf
mkMerge
mkOption
types
;

View File

@@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ config, lib, ... }:
let
inherit (lib)

View File

@@ -4,7 +4,6 @@
let
inherit (lib)
mkDefault
mkIf
mkMerge
mkOption

View File

@@ -2,9 +2,7 @@
let
inherit (lib)
mkDefault
mkIf
mkMerge
mkOption
types
;

View File

@@ -4,7 +4,6 @@ let
inherit (lib)
mkIf
mkMerge
mkEnableOption
mkOption
types
;
@@ -12,7 +11,7 @@ let
hardware = config.jovian.hardware;
mkHasOption = description: mkOption {
default = false;
type = lib.types.bool;
type = types.bool;
description = ''
Whether the device has ${description}.
'';

View File

@@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ config, lib, ... }:
let
cfg = config.jovian.workarounds;
in
@@ -19,10 +19,10 @@ in
config = {
nixpkgs.overlays = lib.mkIf (cfg.ignoreMissingKernelModules) [
(final: super: {
(_: prev: {
# Workaround for modules expected by NixOS not being built
# (vmw_balloon, among most likely other)
makeModulesClosure = x: super.makeModulesClosure (x // { allowMissing = true; });
makeModulesClosure = x: prev.makeModulesClosure (x // { allowMissing = true; });
})
];
};

View File

@@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ lib, ... }:
let
inherit (lib)

View File

@@ -2,7 +2,6 @@
let
inherit (lib)
mkDefault
mkIf
mkMerge
mkOption

View File

@@ -1,4 +1,4 @@
{ config, lib, ... }:
{ lib, ... }:
let
inherit (lib)

View File

@@ -84,7 +84,7 @@ rec {
jovian-hardware-survey = final.callPackage ./pkgs/jovian-hardware-survey { };
steamPackages = super.steamPackages.overrideScope (scopeFinal: scopeSuper: {
steamPackages = super.steamPackages.overrideScope (_: scopeSuper: {
steam = final.callPackage ./pkgs/steam-jupiter/unwrapped.nix {
steam-original = scopeSuper.steam;
};

View File

@@ -1,7 +1,6 @@
{ lib
, stdenv
, fetchFromGitHub
, fetchpatch
, nodePackages
, nodejs
, cacert

View File

@@ -5,7 +5,7 @@
# NOTE: vendoring gamescope for the time being since we want to match the
# version shipped by the vendor, ensuring feature level is equivalent.
gamescope'.overrideAttrs(old: rec {
gamescope'.overrideAttrs(_: rec {
version = "3.13.19";
src = fetchFromGitHub {

View File

@@ -1,5 +1,4 @@
{ lib
, stdenv
{ stdenv
, fetchFromGitHub
, autoPatchelfHook
, makeWrapper

View File

@@ -1,13 +1,11 @@
# A wrapped version of Steam with shims to satisfy the SteamOS-only
# dependencies of the Steam Deck UI
{ lib
, runCommand
, writeShellScriptBin
{ writeShellScriptBin
, dmidecode
, jovian-stubs
, steam-fhsenv
, steamos-polkit-helpers
# , steamos-polkit-helpers
, ...
} @ args:

View File

@@ -1,8 +1,5 @@
# This package provides the documentation
{ stdenv
, callPackage
, runCommand
, writeText
{ callPackage
, documentationPath ? ../../docs
, pagefind
, pkgs

View File

@@ -1,6 +1,4 @@
{ lib
, nixos
}:
{ nixos }:
# Given a directory path, evaluates the options in combination with NixOS options.
{ path }:

View File

@@ -69,7 +69,7 @@ let
;
overlayData =
mapAttrs (
name: entry:
_: entry:
if isDerivation entry
then
documentDerivation entry

View File

@@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ config, ... }:
{
services.getty.autologinUser = config.jovian.steam.user;

View File

@@ -1,4 +1,4 @@
{ config, pkgs, ... }:
{ config, ... }:
{
users.users = {