formatter run

This commit is contained in:
Shelvacu
2024-09-10 20:05:01 -07:00
parent c31446e3cb
commit def7296ec7
7 changed files with 158 additions and 144 deletions

View File

@@ -23,9 +23,7 @@ in
readOnly = true;
};
vacu.versionInfo = mkOption { readOnly = true; };
vacu.hostName = mkOption {
type = types.str;
};
vacu.hostName = mkOption { type = types.str; };
vacu.shortHostName = mkOption {
type = types.str;
default = config.vacu.hostName;
@@ -33,7 +31,8 @@ in
vacu.nixvimPkg = mkOption { readOnly = true; };
};
config = {
vacu.packages = (with pkgs; [
vacu.packages =
(with pkgs; [
home-manager
nixos-rebuild
which
@@ -93,12 +92,15 @@ in
killall
git
curl
]) ++ [
])
++ [
inputs.nix-search-cli.packages.${pkgs.system}.default
inputs.nix-inspect.packages.${pkgs.system}.default
];
vacu.nixvimPkg = inputs.nixvim.legacyPackages.${pkgs.system}.makeNixvimWithModule {
extraSpecialArgs = { inherit inputs; };
extraSpecialArgs = {
inherit inputs;
};
module = {
imports = [ ../nixvim ];
};

View File

@@ -1,5 +1,10 @@
# These are the things that might in a simpler time go in ~/.bashrc as aliases. But they're not aliases, cuz aliases are bad
{ pkgs, vaculib, config, ... }:
{
pkgs,
vaculib,
config,
...
}:
let
inherit (pkgs) writeScriptBin;
inherit (vaculib) writeShellFunction;

View File

@@ -1,18 +1,20 @@
{ callPackage
, fetchFromGitHub
, autoPatchelfHook
, zlib
, curl
, libcxx
, stdenvNoCC
, nixpkgs ? <nixpkgs>
, writeTextFile
, lib
, bash
{
callPackage,
fetchFromGitHub,
autoPatchelfHook,
zlib,
curl,
libcxx,
stdenvNoCC,
nixpkgs ? <nixpkgs>,
writeTextFile,
lib,
bash,
, enableTextureFix ? true
, enableDiscord ? false
}: let
enableTextureFix ? true,
enableDiscord ? false,
}:
let
libc_hack = writeTextFile {
name = "libc-hack";
# https://stackoverflow.com/questions/21768542/libc-h-no-such-file-or-directory-when-compiling-nanomsg-pipeline-sample
@@ -24,11 +26,18 @@
destination = "/include/libc.h";
};
target = stdenvNoCC.targetPlatform;
bits = if target.is64bit then "64" else if target.is32bit then "32" else throw "unspported bits";
bits =
if target.is64bit then
"64"
else if target.is32bit then
"32"
else
throw "unspported bits";
pname = "sm64coopdx";
version = "1.0.3";
region = "us"; # dx removed support for other regions
in (callPackage "${nixpkgs}/pkgs/games/sm64ex/generic.nix" {
in
(callPackage "${nixpkgs}/pkgs/games/sm64ex/generic.nix" {
inherit pname version region;
src = fetchFromGitHub {
@@ -38,9 +47,7 @@ in (callPackage "${nixpkgs}/pkgs/games/sm64ex/generic.nix" {
hash = "sha256-cIH3escLFMcHgtFxeSKIo5nZXvaknti+EVt72uB4XXc=";
};
extraNativeBuildInputs = [
autoPatchelfHook
];
extraNativeBuildInputs = [ autoPatchelfHook ];
extraBuildInputs = [
zlib
@@ -58,13 +65,13 @@ in (callPackage "${nixpkgs}/pkgs/games/sm64ex/generic.nix" {
"TEXTURE_FIX=${if enableTextureFix then "1" else "0"}"
];
extraMeta = {
mainProgram = pname;
homepage = "https://sm64coopdx.com/";
description = "Super Mario 64 online co-op mod, forked from sm64ex";
};
}).overrideAttrs {
}).overrideAttrs
{
installPhase =
let
sharedLib = target.extensions.sharedLibrary;
@@ -94,4 +101,3 @@ in (callPackage "${nixpkgs}/pkgs/games/sm64ex/generic.nix" {
runHook postInstall
'';
}

View File

@@ -94,7 +94,9 @@
...
}@inputs:
let
blarg = { config.allowUnfree = true; };
blarg = {
config.allowUnfree = true;
};
pkgs = import nixpkgs ({ system = "x86_64-linux"; } // blarg);
aarchpkgs = import nixpkgs ({ system = "aarch64-linux"; } // blarg);
defaultInputs = {

View File

@@ -1,4 +1,5 @@
{ ... }: let
{ ... }:
let
in
{
plugins.comment.enable = true;

View File

@@ -1,8 +1,4 @@
{
config,
pkgs,
...
}:
{ config, pkgs, ... }:
{
imports = [
../common/nixos.nix
@@ -42,13 +38,15 @@
services.xserver.enable = false;
vacu.packages = (with pkgs; [
vacu.packages =
(with pkgs; [
zfs
smartmontools
openvpn
nvme-cli
tshark
]) ++ [
])
++ [
config.services.postgresql.package
(pkgs.writeScriptBin "into-nix-cache" ''
if [[ $UID -ne 0 ]]; then exec sudo $0 "$@";fi