mirror of
https://github.com/Jovian-Experiments/Jovian-NixOS.git
synced 2025-10-06 00:22:54 +02:00
treewide: deadnix
This commit is contained in:
@@ -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.
|
||||
'';
|
||||
|
@@ -1,8 +1,7 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
{ config, lib, ... }:
|
||||
|
||||
let
|
||||
inherit (lib)
|
||||
mkDefault
|
||||
mkIf
|
||||
mkMerge
|
||||
mkOption
|
||||
|
@@ -4,9 +4,7 @@
|
||||
|
||||
let
|
||||
inherit (lib)
|
||||
mkDefault
|
||||
mkIf
|
||||
mkMerge
|
||||
mkOption
|
||||
types
|
||||
;
|
||||
|
@@ -1,4 +1,4 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
{ config, lib, ... }:
|
||||
|
||||
let
|
||||
inherit (lib)
|
||||
|
@@ -4,7 +4,6 @@
|
||||
|
||||
let
|
||||
inherit (lib)
|
||||
mkDefault
|
||||
mkIf
|
||||
mkMerge
|
||||
mkOption
|
||||
|
@@ -2,9 +2,7 @@
|
||||
|
||||
let
|
||||
inherit (lib)
|
||||
mkDefault
|
||||
mkIf
|
||||
mkMerge
|
||||
mkOption
|
||||
types
|
||||
;
|
||||
|
@@ -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}.
|
||||
'';
|
||||
|
@@ -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; });
|
||||
})
|
||||
];
|
||||
};
|
||||
|
@@ -1,4 +1,4 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
{ lib, ... }:
|
||||
|
||||
let
|
||||
inherit (lib)
|
||||
|
@@ -2,7 +2,6 @@
|
||||
|
||||
let
|
||||
inherit (lib)
|
||||
mkDefault
|
||||
mkIf
|
||||
mkMerge
|
||||
mkOption
|
||||
|
@@ -1,4 +1,4 @@
|
||||
{ config, lib, ... }:
|
||||
{ lib, ... }:
|
||||
|
||||
let
|
||||
inherit (lib)
|
||||
|
@@ -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;
|
||||
};
|
||||
|
@@ -1,7 +1,6 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, nodePackages
|
||||
, nodejs
|
||||
, cacert
|
||||
|
@@ -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 {
|
||||
|
@@ -1,5 +1,4 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
{ stdenv
|
||||
, fetchFromGitHub
|
||||
, autoPatchelfHook
|
||||
, makeWrapper
|
||||
|
@@ -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:
|
||||
|
||||
|
@@ -1,8 +1,5 @@
|
||||
# This package provides the documentation
|
||||
{ stdenv
|
||||
, callPackage
|
||||
, runCommand
|
||||
, writeText
|
||||
{ callPackage
|
||||
, documentationPath ? ../../docs
|
||||
, pagefind
|
||||
, pkgs
|
||||
|
@@ -1,6 +1,4 @@
|
||||
{ lib
|
||||
, nixos
|
||||
}:
|
||||
{ nixos }:
|
||||
|
||||
# Given a directory path, evaluates the options in combination with NixOS options.
|
||||
{ path }:
|
||||
|
@@ -69,7 +69,7 @@ let
|
||||
;
|
||||
overlayData =
|
||||
mapAttrs (
|
||||
name: entry:
|
||||
_: entry:
|
||||
if isDerivation entry
|
||||
then
|
||||
documentDerivation entry
|
||||
|
@@ -1,4 +1,4 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
{ config, ... }:
|
||||
|
||||
{
|
||||
services.getty.autologinUser = config.jovian.steam.user;
|
||||
|
@@ -1,4 +1,4 @@
|
||||
{ config, pkgs, ... }:
|
||||
{ config, ... }:
|
||||
|
||||
{
|
||||
users.users = {
|
||||
|
Reference in New Issue
Block a user